From 3ece29105d12819e602dbd0309f4ffda321a2ea3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Feb 2012 04:49:07 +0000 Subject: Tuple serialisation. git-svn-id: http://svn.drobilla.net/lad/trunk/seriatom@3990 a436a847-0d15-0410-975c-d299462d15a1 --- tests/seriatom_test.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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; } -- cgit v1.2.1