aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-18 02:59:40 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commitffe660fe7a8cf97416b47a81080f4229874c5e89 (patch)
tree44d31c1121fed195e7d7c1dac39a9e2654b8365d
parent7e15cdbd8ce83771098a90d70b086f833ab0941f (diff)
downloadserd-ffe660fe7a8cf97416b47a81080f4229874c5e89.tar.gz
serd-ffe660fe7a8cf97416b47a81080f4229874c5e89.tar.bz2
serd-ffe660fe7a8cf97416b47a81080f4229874c5e89.zip
Improve Env test coverage
-rw-r--r--tests/serd_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 04dbeb01..cb80d598 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -523,6 +523,9 @@ main(void)
SerdEnv* env_copy = serd_env_copy(env);
assert(serd_env_equals(env, env_copy));
+ assert(!serd_env_equals(env, NULL));
+ assert(!serd_env_equals(NULL, env));
+ assert(serd_env_equals(NULL, NULL));
SerdNode* qualified2 = serd_env_expand(env_copy, foo_u);
assert(serd_node_equals(qualified, foo_c));