diff options
author | David Robillard <d@drobilla.net> | 2018-04-29 18:36:11 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | 6fa4720fe935853338b362e5fce1a2486e16978a (patch) | |
tree | 6ec84745cd6133f852d5bf49f33c786d01919fbb /tests | |
parent | 05d9109178906eb68ef6b488d115134c7bdcf179 (diff) | |
download | serd-6fa4720fe935853338b362e5fce1a2486e16978a.tar.gz serd-6fa4720fe935853338b362e5fce1a2486e16978a.tar.bz2 serd-6fa4720fe935853338b362e5fce1a2486e16978a.zip |
Add blank node API
Diffstat (limited to 'tests')
-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 816eb83c..5d5633b3 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(); |