diff options
author | David Robillard <d@drobilla.net> | 2016-07-10 17:32:21 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-10 17:32:21 -0400 |
commit | bdda8bd6b9fc2839a2ee926d7a0158dddcb05097 (patch) | |
tree | d987955349d9c2f40b59887855c554edd843a72e | |
parent | 3b886d22f5b073e5a4a9d9b24a959a28a17c778c (diff) | |
download | sratom-bdda8bd6b9fc2839a2ee926d7a0158dddcb05097.tar.gz sratom-bdda8bd6b9fc2839a2ee926d7a0158dddcb05097.tar.bz2 sratom-bdda8bd6b9fc2839a2ee926d7a0158dddcb05097.zip |
Test Windows paths
-rw-r--r-- | tests/sratom_test.c | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c index 90a81cd..601e9e8 100644 --- a/tests/sratom_test.c +++ b/tests/sratom_test.c @@ -97,23 +97,24 @@ test(bool top_level, bool pretty_numbers) LV2_URID eg_true = urid_map(NULL, "http://example.org/e-true"); 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_urid = urid_map(NULL, "http://example.org/h-urid"); - LV2_URID eg_string = urid_map(NULL, "http://example.org/i-string"); - LV2_URID eg_langlit = urid_map(NULL, "http://example.org/j-langlit"); - LV2_URID eg_typelit = urid_map(NULL, "http://example.org/k-typelit"); - LV2_URID eg_null = urid_map(NULL, "http://example.org/l-null"); - LV2_URID eg_chunk = urid_map(NULL, "http://example.org/m-chunk"); - LV2_URID eg_blob = urid_map(NULL, "http://example.org/n-blob"); - LV2_URID eg_blank = urid_map(NULL, "http://example.org/o-blank"); - LV2_URID eg_tuple = urid_map(NULL, "http://example.org/p-tuple"); - LV2_URID eg_rectup = urid_map(NULL, "http://example.org/q-rectup"); - LV2_URID eg_ivector = urid_map(NULL, "http://example.org/r-ivector"); - LV2_URID eg_lvector = urid_map(NULL, "http://example.org/s-lvector"); - LV2_URID eg_fvector = urid_map(NULL, "http://example.org/t-fvector"); - LV2_URID eg_dvector = urid_map(NULL, "http://example.org/u-dvector"); - LV2_URID eg_bvector = urid_map(NULL, "http://example.org/v-bvector"); - LV2_URID eg_fseq = urid_map(NULL, "http://example.org/w-fseq"); - LV2_URID eg_bseq = urid_map(NULL, "http://example.org/x-bseq"); + 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"); uint8_t buf[1024]; lv2_atom_forge_set_buffer(&forge, buf, sizeof(buf)); @@ -158,6 +159,12 @@ test(bool top_level, bool pretty_numbers) lv2_atom_forge_key(&forge, eg_path); lv2_atom_forge_path(&forge, pstr, pstr_len); + // eg_winpath = (Path)"C:\Stupid\File System" + const char* wpstr = "C:/Stupid/File System"; + const size_t wpstr_len = strlen(wpstr); + lv2_atom_forge_key(&forge, eg_winpath); + lv2_atom_forge_path(&forge, wpstr, wpstr_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); |