diff options
author | David Robillard <d@drobilla.net> | 2016-03-15 14:58:38 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-03-15 14:58:38 -0400 |
commit | 2d66c5e98f1bbc8244d61e6f328e2a7b5671fab2 (patch) | |
tree | 336026ca06d5eb4740268cc64c81bdcf689b65f2 | |
parent | 099e278a9dd6e323dcab2ab2644ea7d25d3e2a4d (diff) | |
download | sratom-2d66c5e98f1bbc8244d61e6f328e2a7b5671fab2.tar.gz sratom-2d66c5e98f1bbc8244d61e6f328e2a7b5671fab2.tar.bz2 sratom-2d66c5e98f1bbc8244d61e6f328e2a7b5671fab2.zip |
Add multi-byte literal to test data
-rw-r--r-- | tests/sratom_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/sratom_test.c b/tests/sratom_test.c index 7f2c37a..49b9357 100644 --- a/tests/sratom_test.c +++ b/tests/sratom_test.c @@ -166,11 +166,12 @@ test(bool top_level, bool pretty_numbers) lv2_atom_forge_key(&forge, eg_string); lv2_atom_forge_string(&forge, "hello", strlen("hello")); - // eg_langlit = (Literal)"bonjour"@fr + // eg_langlit = (Literal)"ni hao"@cmn (but in actual mandarin) + const uint8_t ni_hao[] = { 0xE4, 0xBD, 0xA0, 0xE5, 0xA5, 0xBD }; lv2_atom_forge_key(&forge, eg_langlit); lv2_atom_forge_literal( - &forge, "bonjour", strlen("bonjour"), - 0, urid_map(NULL, "http://lexvo.org/id/iso639-3/fra")); + &forge, (const char*)ni_hao, 6, + 0, urid_map(NULL, "http://lexvo.org/id/iso639-3/cmn")); // eg_typelit = (Literal)"value"^^<http://example.org/Type> lv2_atom_forge_key(&forge, eg_typelit); |