From 6f362db2fbfe1b02929673aa9b0529b4328fb195 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Mar 2021 19:38:01 -0500 Subject: Add SerdSink interface and hide implementations --- test/test_writer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/test_writer.c') diff --git a/test/test_writer.c b/test/test_writer.c index 756535ad..190995b6 100644 --- a/test/test_writer.c +++ b/test/test_writer.c @@ -34,7 +34,8 @@ test_write_bad_prefix(void) SerdNode* name = serd_new_string(SERD_STRING("eg")); SerdNode* uri = serd_new_uri(SERD_STRING("rel")); - assert(serd_writer_set_prefix(writer, name, uri) == SERD_ERR_BAD_ARG); + assert(serd_sink_write_prefix(serd_writer_sink(writer), name, uri) == + SERD_ERR_BAD_ARG); char* const out = serd_buffer_sink_finish(&buffer); @@ -63,7 +64,7 @@ test_write_long_literal(void) SERD_EMPTY_STRING(), SERD_EMPTY_STRING()); - assert(!serd_writer_write_statement(writer, 0, NULL, s, p, o)); + assert(!serd_sink_write(serd_writer_sink(writer), 0, s, p, o, NULL)); serd_node_free(o); serd_node_free(p); -- cgit v1.2.1