diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_env.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/test_env.c b/test/test_env.c index 9ab13ef2..58455167 100644 --- a/test/test_env.c +++ b/test/test_env.c @@ -164,15 +164,17 @@ test_expand_bad_uri_datatype(void) { static const SerdStringView type = SERD_STRING("Type"); - SerdNode* const typed = - serd_new_literal(SERD_STRING("data"), SERD_HAS_DATATYPE, type); + SerdNodes* nodes = serd_nodes_new(); + + const SerdNode* const typed = + serd_nodes_literal(nodes, SERD_STRING("data"), SERD_HAS_DATATYPE, type); SerdEnv* const env = serd_env_new(SERD_EMPTY_STRING()); assert(!serd_env_expand_node(env, typed)); serd_env_free(env); - serd_node_free(typed); + serd_nodes_free(nodes); } static void |