From 4711fdf527f416faee8ff19e15f050d4b48dcfb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 May 2023 09:43:57 -0400 Subject: [WIP] Generalize node construction API --- test/test_sink.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'test/test_sink.c') diff --git a/test/test_sink.c b/test/test_sink.c index 9c7959de..72c45df6 100644 --- a/test/test_sink.c +++ b/test/test_sink.c @@ -11,7 +11,6 @@ #include "serd/sink.h" #include "serd/statement.h" #include "serd/status.h" -#include "serd/string_view.h" #include #include @@ -111,10 +110,10 @@ test_failed_alloc(void) static void test_callbacks(void) { - SerdNode* const base = serd_new_uri(NULL, serd_string(NS_EG)); - SerdNode* const name = serd_new_string(NULL, serd_string("eg")); - SerdNode* const uri = serd_new_uri(NULL, serd_string(NS_EG "uri")); - SerdNode* const blank = serd_new_blank(NULL, serd_string("b1")); + SerdNode* const base = serd_node_new(NULL, serd_a_uri_string(NS_EG)); + SerdNode* const name = serd_node_new(NULL, serd_a_string("eg")); + SerdNode* const uri = serd_node_new(NULL, serd_a_uri_string(NS_EG "uri")); + SerdNode* const blank = serd_node_new(NULL, serd_a_blank_string("b1")); SerdEnv* env = serd_env_new(NULL, serd_node_string_view(base)); State state = {0, 0, 0, 0, 0, SERD_SUCCESS}; -- cgit v1.2.1