aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-23 12:24:54 -0400
committerDavid Robillard <d@drobilla.net>2022-01-14 19:37:51 -0500
commit37b14ad8b07f7e8d647e15a05339d31f2ee4dd58 (patch)
treec3d1cb8b4a1c6cad1c86a33708206a0214ce52c0 /test
parent955be33cead7596506cf86211da6b0e53827ef96 (diff)
downloadserd-37b14ad8b07f7e8d647e15a05339d31f2ee4dd58.tar.gz
serd-37b14ad8b07f7e8d647e15a05339d31f2ee4dd58.tar.bz2
serd-37b14ad8b07f7e8d647e15a05339d31f2ee4dd58.zip
Use Nodes in Env implementation
Diffstat (limited to 'test')
-rw-r--r--test/test_env.c8
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