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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_env.c b/test/test_env.c
index 99e16854..c64b5fed 100644
--- a/test/test_env.c
+++ b/test/test_env.c
@@ -41,6 +41,9 @@ test_env(void)
SerdEnv* env = serd_env_new(NULL);
serd_env_set_prefix_from_strings(env, "eg.2", "http://example.org/");
+ assert(serd_env_set_prefix_from_strings(env, "eg.3", "rel") ==
+ SERD_ERR_BAD_ARG);
+
SerdStringView prefix;
SerdStringView suffix;
assert(serd_env_expand(env, b, &prefix, &suffix));