diff options
author | David Robillard <d@drobilla.net> | 2013-03-30 16:35:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-30 16:35:23 +0000 |
commit | 99a57ab1bc5878001f639d1cbfc4ab323848f884 (patch) | |
tree | 5212bd9ce000fa399503e05fb33a55be6542765c /tests/serd_test.c | |
parent | 326d672cc93ebea8309c98c4549d30e7dc9c2eba (diff) | |
download | serd-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/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 5 |
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\""); |