diff options
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index 0049dbca..da567a35 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -366,6 +366,16 @@ main(void) serd_node_free(rel); serd_node_free(base); + // Test serd_node_new_blank + + assert(!serd_node_new_blank(NULL)); + + SerdNode* blank = serd_node_new_blank("b0"); + assert(serd_node_get_length(blank) == 2); + assert(serd_node_get_flags(blank) == 0); + assert(!strcmp(serd_node_get_string(blank), "b0")); + serd_node_free(blank); + // Test SerdEnv SerdWorld* world = serd_world_new(); |