diff options
author | David Robillard <d@drobilla.net> | 2018-05-12 12:48:26 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-05-27 18:23:15 +0200 |
commit | 20c01ada2d0304cc4e3faa9ed1a6c5726365e2c0 (patch) | |
tree | 1bf56f4f15300480794532e1e9ba57cb82c73e39 /tests | |
parent | 7953d861d83abd1a30ae2d620a8ba691bdf2ca1d (diff) | |
download | serd-20c01ada2d0304cc4e3faa9ed1a6c5726365e2c0.tar.gz serd-20c01ada2d0304cc4e3faa9ed1a6c5726365e2c0.tar.bz2 serd-20c01ada2d0304cc4e3faa9ed1a6c5726365e2c0.zip |
Test serd_strlen() with NULL flags
Diffstat (limited to 'tests')
-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 01f1e60b..e5037945 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -248,6 +248,10 @@ main(void) str, n_bytes, flags); } + if (serd_strlen((const char*)str, NULL) != 7) { + FAILF("Bad serd_strlen(%s) n_bytes=%zu no flags\n", str, n_bytes); + } + // Test serd_strerror const char* msg = NULL; |