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 d2c80343..d45f2ef6 100644
--- a/test/test_env.c
+++ b/test/test_env.c
@@ -161,8 +161,10 @@ test_expand_bad_uri_datatype(void)
{
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(env, typed));