summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 13:36:47 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 14:04:30 -0400
commit5c2a9c1d745dcf4959347f0af53291149665ed13 (patch)
tree0b29d5b17d4432ddf43281bd2849b7c2deb1687c /test
parenta96d07d3610e27abe5fcae72f3b75d639aff57ec (diff)
downloadsratom-5c2a9c1d745dcf4959347f0af53291149665ed13.tar.gz
sratom-5c2a9c1d745dcf4959347f0af53291149665ed13.tar.bz2
sratom-5c2a9c1d745dcf4959347f0af53291149665ed13.zip
Add missing const qualifiers
Diffstat (limited to 'test')
-rw-r--r--test/test_sratom.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_sratom.c b/test/test_sratom.c
index ba59737..6b54627 100644
--- a/test/test_sratom.c
+++ b/test/test_sratom.c
@@ -257,27 +257,27 @@ test(SerdEnv* env, bool top_level, bool pretty_numbers)
// eg_ivector = (Vector<Int>)1,2,3,4,5
lv2_atom_forge_key(&forge, eg_ivector);
- int32_t ielems[] = {1, 2, 3, 4, 5};
+ const int32_t ielems[] = {1, 2, 3, 4, 5};
lv2_atom_forge_vector(&forge, sizeof(int32_t), forge.Int, 5, ielems);
// eg_lvector = (Vector<Long>)1,2,3,4
lv2_atom_forge_key(&forge, eg_lvector);
- int64_t lelems[] = {1, 2, 3, 4};
+ const int64_t lelems[] = {1, 2, 3, 4};
lv2_atom_forge_vector(&forge, sizeof(int64_t), forge.Long, 4, lelems);
// eg_fvector = (Vector<Float>)1.0,2.0,3.0,4.0,5.0
lv2_atom_forge_key(&forge, eg_fvector);
- float felems[] = {1, 2, 3, 4, 5};
+ const float felems[] = {1, 2, 3, 4, 5};
lv2_atom_forge_vector(&forge, sizeof(float), forge.Float, 5, felems);
// eg_dvector = (Vector<Double>)1.0,2.0,3.0,4.0
lv2_atom_forge_key(&forge, eg_dvector);
- double delems[] = {1, 2, 3, 4};
+ const double delems[] = {1, 2, 3, 4};
lv2_atom_forge_vector(&forge, sizeof(double), forge.Double, 4, delems);
// eg_bvector = (Vector<Bool>)1,0,1
lv2_atom_forge_key(&forge, eg_bvector);
- int32_t belems[] = {true, false, true};
+ const int32_t belems[] = {true, false, true};
lv2_atom_forge_vector(&forge, sizeof(int32_t), forge.Bool, 3, belems);
// eg_fseq = (Sequence)1, 2
@@ -325,8 +325,8 @@ test(SerdEnv* env, bool top_level, bool pretty_numbers)
SerdNode s = serd_node_from_string(SERD_URI, USTR("http://example.org/obj"));
SerdNode p = serd_node_from_string(SERD_URI, USTR(NS_RDF "value"));
- SerdNode* subj = top_level ? NULL : &s;
- SerdNode* pred = top_level ? NULL : &p;
+ const SerdNode* subj = top_level ? NULL : &s;
+ const SerdNode* pred = top_level ? NULL : &p;
char* outstr = sratom_to_turtle(sratom,
&unmap,