From 99a57ab1bc5878001f639d1cbfc4ab323848f884 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 30 Mar 2013 16:35:23 +0000 Subject: Improve branch coverage. git-svn-id: http://svn.drobilla.net/serd/trunk@445 490d8e77-9747-427b-9fa3-0b8f29cee8a0 --- tests/serd_test.c | 5 +++++ 1 file changed, 5 insertions(+) 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\""); -- cgit v1.2.1