diff options
author | David Robillard <d@drobilla.net> | 2016-03-15 23:37:09 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | 3bf99421c04fdcc789745b7c59fc9bee8edce06b (patch) | |
tree | bdd67c76a8a00e48f89b82088cc8a8ce1329a54d /test/test_string.c | |
parent | 16e8c50a29d8a932fa84a74d0b2a732994116db0 (diff) | |
download | serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.gz serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.tar.bz2 serd-3bf99421c04fdcc789745b7c59fc9bee8edce06b.zip |
Remove useless character counting
Diffstat (limited to 'test/test_string.c')
-rw-r--r-- | test/test_string.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/test/test_string.c b/test/test_string.c index cdb7a50d..27a488fb 100644 --- a/test/test_string.c +++ b/test/test_string.c @@ -28,15 +28,10 @@ test_strlen(void) { const uint8_t str[] = {'"', '5', 0xE2, 0x82, 0xAC, '"', '\n', 0}; - size_t n_bytes = 0; SerdNodeFlags flags = 0; - size_t len = serd_strlen(str, &n_bytes, &flags); - assert(len == 5 && n_bytes == 7 && - flags == (SERD_HAS_QUOTE | SERD_HAS_NEWLINE)); - len = serd_strlen(str, NULL, &flags); - assert(len == 5); - - assert(serd_strlen(str, &n_bytes, NULL) == 5); + size_t n_bytes = serd_strlen(str, &flags); + assert(n_bytes == 7 && flags == (SERD_HAS_QUOTE | SERD_HAS_NEWLINE)); + assert(serd_strlen(str, NULL) == 7); } static void |