diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 12:48:26 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-06-10 19:57:44 +0000 |
commit | 02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb (patch) | |
tree | 6c1e6cb0947ba576fe19a5344b8cbe6d1ac58751 /tests/serd_test.c | |
parent | e3a491db47da8ae03d6390e71652ca53779fb393 (diff) | |
download | serd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.tar.gz serd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.tar.bz2 serd-02bc66c5fa8693d9d28bc3171f3d5937f86cfdfb.zip |
Test serd_strlen() with NULL flags
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 4 |
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; |