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.c7
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);