aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_sink.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-05-05 09:43:57 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit4711fdf527f416faee8ff19e15f050d4b48dcfb2 (patch)
tree6b18712ec44cce5713ddef1a21aec5f12651d901 /test/test_sink.c
parent248a874d7425749d29cf900a1c3783c624ea8d8c (diff)
downloadserd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.tar.gz
serd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.tar.bz2
serd-4711fdf527f416faee8ff19e15f050d4b48dcfb2.zip
[WIP] Generalize node construction API
Diffstat (limited to 'test/test_sink.c')
-rw-r--r--test/test_sink.c9
1 files changed, 4 insertions, 5 deletions
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 <assert.h>
#include <stddef.h>
@@ -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};