summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-21 04:49:07 +0000
committerDavid Robillard <d@drobilla.net>2012-02-21 04:49:07 +0000
commit3ece29105d12819e602dbd0309f4ffda321a2ea3 (patch)
tree6655ebd358424e43387649318b8631ebc0b6d389 /tests
parentee1e682e0a3787a4b293e55a09d2394bd1d47252 (diff)
downloadsratom-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')
-rw-r--r--tests/seriatom_test.c5
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;
}