aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_node.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-02-20 10:11:33 -0500
committerDavid Robillard <d@drobilla.net>2021-03-08 23:36:35 -0500
commitc579186c5dd4e11bffddd353cef8978a66ef9c10 (patch)
treeb89f1059d161872ded394a5c620a3b4f156f7972 /test/test_node.c
parentc7a827b07898551611d43f92cf4e2fa53595957a (diff)
downloadserd-c579186c5dd4e11bffddd353cef8978a66ef9c10.tar.gz
serd-c579186c5dd4e11bffddd353cef8978a66ef9c10.tar.bz2
serd-c579186c5dd4e11bffddd353cef8978a66ef9c10.zip
WIP: Simplify node construction
Diffstat (limited to 'test/test_node.c')
-rw-r--r--test/test_node.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/test/test_node.c b/test/test_node.c
index f942f242..f484f9a9 100644
--- a/test/test_node.c
+++ b/test/test_node.c
@@ -302,7 +302,6 @@ test_node_from_syntax(void)
{
SerdNode* const hello = serd_new_string(SERD_STATIC_STRING("hello\""));
assert(serd_node_length(hello) == 6);
- assert(serd_node_flags(hello) == SERD_HAS_QUOTE);
assert(!strncmp(serd_node_string(hello), "hello\"", 6));
serd_node_free(hello);
}
@@ -312,25 +311,17 @@ test_node_from_substring(void)
{
SerdNode* const a_b = serd_new_string(SERD_STRING_VIEW("a\"bc", 3));
assert(serd_node_length(a_b) == 3);
- assert(serd_node_flags(a_b) == SERD_HAS_QUOTE);
assert(strlen(serd_node_string(a_b)) == 3);
assert(!strncmp(serd_node_string(a_b), "a\"b", 3));
serd_node_free(a_b);
}
static void
-test_simple_node(void)
-{
- assert(!serd_new_simple_node(SERD_LITERAL, SERD_STATIC_STRING("Literal")));
-}
-
-static void
test_literal(void)
{
SerdNode* hello2 = serd_new_string(SERD_STATIC_STRING("hello\""));
assert(serd_node_length(hello2) == 6 &&
- serd_node_flags(hello2) == SERD_HAS_QUOTE &&
!strcmp(serd_node_string(hello2), "hello\""));
SerdNode* hello3 =
@@ -402,7 +393,6 @@ main(void)
test_node_equals();
test_node_from_syntax();
test_node_from_substring();
- test_simple_node();
test_literal();
test_blank();