aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-30 16:35:23 +0000
committerDavid Robillard <d@drobilla.net>2013-03-30 16:35:23 +0000
commit99a57ab1bc5878001f639d1cbfc4ab323848f884 (patch)
tree5212bd9ce000fa399503e05fb33a55be6542765c /tests
parent326d672cc93ebea8309c98c4549d30e7dc9c2eba (diff)
downloadserd-99a57ab1bc5878001f639d1cbfc4ab323848f884.tar.gz
serd-99a57ab1bc5878001f639d1cbfc4ab323848f884.tar.bz2
serd-99a57ab1bc5878001f639d1cbfc4ab323848f884.zip
Improve branch coverage.
git-svn-id: http://svn.drobilla.net/serd/trunk@445 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 268f1a85..8ad877e2 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -378,6 +378,11 @@ main(void)
return failure("%s != %s\n", lhs.buf, lhs.buf);
}
+ SerdNode null_copy = serd_node_copy(&SERD_NODE_NULL);
+ if (!serd_node_equals(&SERD_NODE_NULL, &null_copy)) {
+ return failure("copy of null node != null node\n");
+ }
+
// Test serd_node_from_string
SerdNode node = serd_node_from_string(SERD_LITERAL, (const uint8_t*)"hello\"");