aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_env.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_env.c')
-rw-r--r--test/test_env.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_env.c b/test/test_env.c
index 41e2060b..1b924ae9 100644
--- a/test/test_env.c
+++ b/test/test_env.c
@@ -164,8 +164,10 @@ test_expand_bad_uri_datatype(void)
{
static const SerdStringView type = SERD_STRING("Type");
- SerdNode* const typed = serd_new_typed_literal(SERD_STRING("data"), type);
- SerdEnv* const env = serd_env_new(SERD_EMPTY_STRING());
+ SerdNode* const typed =
+ serd_new_literal(SERD_STRING("data"), SERD_HAS_DATATYPE, type);
+
+ SerdEnv* const env = serd_env_new(SERD_EMPTY_STRING());
assert(!serd_env_expand_node(env, typed));