aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_string.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_string.c
parentc7a827b07898551611d43f92cf4e2fa53595957a (diff)
downloadserd-c579186c5dd4e11bffddd353cef8978a66ef9c10.tar.gz
serd-c579186c5dd4e11bffddd353cef8978a66ef9c10.tar.bz2
serd-c579186c5dd4e11bffddd353cef8978a66ef9c10.zip
WIP: Simplify node construction
Diffstat (limited to 'test/test_string.c')
-rw-r--r--test/test_string.c12
1 files changed, 0 insertions, 12 deletions
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");