diff options
Diffstat (limited to 'tests/terse_write_test.c')
-rw-r--r-- | tests/terse_write_test.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/terse_write_test.c b/tests/terse_write_test.c index 4b6a80c4..924dfbc9 100644 --- a/tests/terse_write_test.c +++ b/tests/terse_write_test.c @@ -67,13 +67,8 @@ test(void) serd_env_set_prefix_from_strings(env, "rdf", NS_RDF); - SerdWriter* writer = serd_writer_new(world, - SERD_TURTLE, - 0, - env, - (SerdWriteFunc)serd_buffer_sink, - &buffer); - + SerdByteSink* byte_sink = serd_byte_sink_new_buffer(&buffer); + SerdWriter* writer = serd_writer_new(world, SERD_TURTLE, 0, env, byte_sink); const SerdSink* sink = serd_writer_get_sink(writer); // Simple lone list @@ -102,6 +97,7 @@ test(void) serd_buffer_sink_finish(&buffer); serd_writer_free(writer); + serd_byte_sink_free(byte_sink); serd_nodes_free(nodes); serd_env_free(env); serd_world_free(world); |