diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 10:11:33 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-08 23:36:35 -0500 |
commit | c579186c5dd4e11bffddd353cef8978a66ef9c10 (patch) | |
tree | b89f1059d161872ded394a5c620a3b4f156f7972 /test/test_string.c | |
parent | c7a827b07898551611d43f92cf4e2fa53595957a (diff) | |
download | serd-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.c | 12 |
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"); |