diff options
author | David Robillard <d@drobilla.net> | 2021-07-22 15:26:22 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-14 19:37:51 -0500 |
commit | ca3a7049506cd1ba91326a36fc02a7319657728c (patch) | |
tree | 7289c877d9dc6286ab1826fab45e8a1612e8bc20 /test/test_string.c | |
parent | 21f17ad27b3e805003e50b0f5fcbe606bfef0f3b (diff) | |
download | serd-ca3a7049506cd1ba91326a36fc02a7319657728c.tar.gz serd-ca3a7049506cd1ba91326a36fc02a7319657728c.tar.bz2 serd-ca3a7049506cd1ba91326a36fc02a7319657728c.zip |
Preserve long or short quoting from input documents
Diffstat (limited to 'test/test_string.c')
-rw-r--r-- | test/test_string.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test_string.c b/test/test_string.c index 2f805015..1181de01 100644 --- a/test/test_string.c +++ b/test/test_string.c @@ -24,22 +24,10 @@ #endif #include <assert.h> -#include <stdint.h> #include <stdio.h> #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); @@ -78,7 +66,6 @@ main(int argc, char** argv) { (void)argc; - test_strlen(); test_strerror(); test_canonical_path(argv[0]); |