summaryrefslogtreecommitdiffstats
path: root/tests/sratom_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sratom_test.c')
-rw-r--r--tests/sratom_test.c41
1 files changed, 24 insertions, 17 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c
index 601e9e8..012b901 100644
--- a/tests/sratom_test.c
+++ b/tests/sratom_test.c
@@ -98,23 +98,24 @@ test(bool top_level, bool pretty_numbers)
LV2_URID eg_false = urid_map(NULL, "http://example.org/f-false");
LV2_URID eg_path = urid_map(NULL, "http://example.org/g-path");
LV2_URID eg_winpath = urid_map(NULL, "http://example.org/h-winpath");
- LV2_URID eg_urid = urid_map(NULL, "http://example.org/i-urid");
- LV2_URID eg_string = urid_map(NULL, "http://example.org/j-string");
- LV2_URID eg_langlit = urid_map(NULL, "http://example.org/k-langlit");
- LV2_URID eg_typelit = urid_map(NULL, "http://example.org/l-typelit");
- LV2_URID eg_null = urid_map(NULL, "http://example.org/m-null");
- LV2_URID eg_chunk = urid_map(NULL, "http://example.org/n-chunk");
- LV2_URID eg_blob = urid_map(NULL, "http://example.org/o-blob");
- LV2_URID eg_blank = urid_map(NULL, "http://example.org/p-blank");
- LV2_URID eg_tuple = urid_map(NULL, "http://example.org/q-tuple");
- LV2_URID eg_rectup = urid_map(NULL, "http://example.org/r-rectup");
- LV2_URID eg_ivector = urid_map(NULL, "http://example.org/s-ivector");
- LV2_URID eg_lvector = urid_map(NULL, "http://example.org/t-lvector");
- LV2_URID eg_fvector = urid_map(NULL, "http://example.org/u-fvector");
- LV2_URID eg_dvector = urid_map(NULL, "http://example.org/v-dvector");
- LV2_URID eg_bvector = urid_map(NULL, "http://example.org/w-bvector");
- LV2_URID eg_fseq = urid_map(NULL, "http://example.org/x-fseq");
- LV2_URID eg_bseq = urid_map(NULL, "http://example.org/y-bseq");
+ LV2_URID eg_relpath = urid_map(NULL, "http://example.org/i-relpath");
+ LV2_URID eg_urid = urid_map(NULL, "http://example.org/j-urid");
+ LV2_URID eg_string = urid_map(NULL, "http://example.org/k-string");
+ LV2_URID eg_langlit = urid_map(NULL, "http://example.org/l-langlit");
+ LV2_URID eg_typelit = urid_map(NULL, "http://example.org/m-typelit");
+ LV2_URID eg_null = urid_map(NULL, "http://example.org/n-null");
+ LV2_URID eg_chunk = urid_map(NULL, "http://example.org/o-chunk");
+ LV2_URID eg_blob = urid_map(NULL, "http://example.org/p-blob");
+ LV2_URID eg_blank = urid_map(NULL, "http://example.org/q-blank");
+ LV2_URID eg_tuple = urid_map(NULL, "http://example.org/r-tuple");
+ LV2_URID eg_rectup = urid_map(NULL, "http://example.org/s-rectup");
+ LV2_URID eg_ivector = urid_map(NULL, "http://example.org/t-ivector");
+ LV2_URID eg_lvector = urid_map(NULL, "http://example.org/u-lvector");
+ LV2_URID eg_fvector = urid_map(NULL, "http://example.org/v-fvector");
+ LV2_URID eg_dvector = urid_map(NULL, "http://example.org/w-dvector");
+ LV2_URID eg_bvector = urid_map(NULL, "http://example.org/x-bvector");
+ LV2_URID eg_fseq = urid_map(NULL, "http://example.org/y-fseq");
+ LV2_URID eg_bseq = urid_map(NULL, "http://example.org/z-bseq");
uint8_t buf[1024];
lv2_atom_forge_set_buffer(&forge, buf, sizeof(buf));
@@ -165,6 +166,12 @@ test(bool top_level, bool pretty_numbers)
lv2_atom_forge_key(&forge, eg_winpath);
lv2_atom_forge_path(&forge, wpstr, wpstr_len);
+ // eg_relpath = (Path)"foo/bar"
+ const char* rpstr = "foo/bar";
+ const size_t rpstr_len = strlen(rpstr);
+ lv2_atom_forge_key(&forge, eg_relpath);
+ lv2_atom_forge_path(&forge, rpstr, rpstr_len);
+
// eg_urid = (URID)"http://example.org/value"
LV2_URID eg_value = urid_map(NULL, "http://example.org/value");
lv2_atom_forge_key(&forge, eg_urid);