aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-05-12 12:48:26 +0200
committerDavid Robillard <d@drobilla.net>2018-06-10 19:57:44 +0000
commit02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb (patch)
tree6c1e6cb0947ba576fe19a5344b8cbe6d1ac58751 /tests
parente3a491db47da8ae03d6390e71652ca53779fb393 (diff)
downloadserd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.tar.gz
serd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.tar.bz2
serd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.zip
Test serd_strlen() with NULL flags
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c
index 945fefe3..a987b153 100644
--- a/tests/serd_test.c
+++ b/tests/serd_test.c
@@ -244,6 +244,10 @@ main(void)
str, len, flags);
}
+ if (serd_strlen(str, &n_bytes, NULL) != 5) {
+ FAILF("Bad serd_strlen(%s) n_bytes=%zu no flags\n", str, n_bytes);
+ }
+
// Test serd_strerror
const uint8_t* msg = NULL;