Browse Source

Improve branch coverage.

git-svn-id: http://svn.drobilla.net/serd/trunk@445 490d8e77-9747-427b-9fa3-0b8f29cee8a0
zrythm_meson
David Robillard 10 years ago
parent
commit
99a57ab1bc
  1. 5
      tests/serd_test.c

5
tests/serd_test.c

@ -378,6 +378,11 @@ main(void) @@ -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\"");

Loading…
Cancel
Save