aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_string.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-07-22 15:26:22 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit5e4538756d601e6a941c5290777af95ea8848e1a (patch)
tree9868e188a48a528e9908fcf695147f75790c3a56 /test/test_string.c
parent64024d0fa6a6dc048b2b846738846da597025f56 (diff)
downloadserd-5e4538756d601e6a941c5290777af95ea8848e1a.tar.gz
serd-5e4538756d601e6a941c5290777af95ea8848e1a.tar.bz2
serd-5e4538756d601e6a941c5290777af95ea8848e1a.zip
[WIP] Preserve long or short quoting from input documents
Diffstat (limited to 'test/test_string.c')
-rw-r--r--test/test_string.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/test/test_string.c b/test/test_string.c
index b551b9fe..5205cc9c 100644
--- a/test/test_string.c
+++ b/test/test_string.c
@@ -3,28 +3,13 @@
#undef NDEBUG
-#include "serd/node.h"
#include "serd/status.h"
-#include "serd/string.h"
#include "zix/attributes.h"
#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);
@@ -41,9 +26,7 @@ test_strerror(void)
ZIX_PURE_FUNC int
main(void)
{
- test_strlen();
test_strerror();
- printf("Success\n");
return 0;
}