aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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\"");