diff options
Diffstat (limited to 'tests/env_test.c')
-rw-r--r-- | tests/env_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/env_test.c b/tests/env_test.c index 25164701..d80eb1f8 100644 --- a/tests/env_test.c +++ b/tests/env_test.c @@ -39,6 +39,7 @@ test_env(void) SerdNode* hello = serd_new_string("hello\""); SerdNode* eg = serd_new_uri("http://example.org/"); SerdNode* foo_u = serd_new_uri("http://example.org/foo"); + SerdNode* empty = serd_new_uri(""); SerdNode* foo_c = serd_new_curie("eg.2:foo"); SerdNode* b = serd_new_curie("invalid"); SerdNode* pre = serd_new_curie("eg.2"); @@ -47,7 +48,7 @@ test_env(void) assert(!serd_env_base_uri(env)); assert(serd_env_set_base_uri(env, NULL)); - assert(!serd_env_base_uri(env)); + assert(serd_env_set_base_uri(env, empty)); assert(serd_env_set_base_uri(env, hello)); assert(!serd_env_base_uri(env)); @@ -115,6 +116,7 @@ test_env(void) serd_node_free(qualified); serd_node_free(foo_c); + serd_node_free(empty); serd_node_free(foo_u); serd_node_free(lit); serd_node_free(b); |