diff options
author | David Robillard <d@drobilla.net> | 2012-02-21 04:49:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-21 04:49:07 +0000 |
commit | 3ece29105d12819e602dbd0309f4ffda321a2ea3 (patch) | |
tree | 6655ebd358424e43387649318b8631ebc0b6d389 /tests/seriatom_test.c | |
parent | ee1e682e0a3787a4b293e55a09d2394bd1d47252 (diff) | |
download | sratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.tar.gz sratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.tar.bz2 sratom-3ece29105d12819e602dbd0309f4ffda321a2ea3.zip |
Tuple serialisation.
git-svn-id: http://svn.drobilla.net/lad/trunk/seriatom@3990 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'tests/seriatom_test.c')
-rw-r--r-- | tests/seriatom_test.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/seriatom_test.c b/tests/seriatom_test.c index 799c498..67da65d 100644 --- a/tests/seriatom_test.c +++ b/tests/seriatom_test.c @@ -81,6 +81,8 @@ main() LV2_Atom_Forge forge; lv2_atom_forge_init(&forge, &map); + Seriatom* seriatom = seriatom_new(&unmap); + LV2_URID eg_Object = urid_map(NULL, "http://example.org/Object"); LV2_URID eg_one = urid_map(NULL, "http://example.org/one"); LV2_URID eg_two = urid_map(NULL, "http://example.org/two"); @@ -267,8 +269,9 @@ main() SerdNode s = serd_node_from_string(SERD_BLANK, USTR("obj")); SerdNode p = serd_node_from_string(SERD_URI, USTR(NS_RDF "value")); - printf("%s", atom_to_turtle(&unmap, &s, &p, obj)); + printf("%s", atom_to_turtle(seriatom, &s, &p, obj)); printf("All tests passed.\n"); + seriatom_free(seriatom); return 0; } |