aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_node.c10
-rw-r--r--test/test_string.c12
2 files changed, 0 insertions, 22 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();
diff --git a/test/test_string.c b/test/test_string.c
index 576f2f96..a4c20506 100644
--- a/test/test_string.c
+++ b/test/test_string.c
@@ -24,17 +24,6 @@
#include <string.h>
static void
-test_strlen(void)
-{
- const uint8_t str[] = {'"', '5', 0xE2, 0x82, 0xAC, '"', '\n', 0};
-
- SerdNodeFlags flags = 0;
- size_t n_bytes = serd_strlen((const char*)str, &flags);
- assert(n_bytes == 7 && flags == (SERD_HAS_QUOTE | SERD_HAS_NEWLINE));
- assert(serd_strlen((const char*)str, NULL) == 7);
-}
-
-static void
test_strerror(void)
{
const char* msg = serd_strerror(SERD_SUCCESS);
@@ -51,7 +40,6 @@ test_strerror(void)
int
main(void)
{
- test_strlen();
test_strerror();
printf("Success\n");