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-05-27 18:23:15 +0200
commit20c01ada2d0304cc4e3faa9ed1a6c5726365e2c0 (patch)
tree1bf56f4f15300480794532e1e9ba57cb82c73e39 /tests
parent7953d861d83abd1a30ae2d620a8ba691bdf2ca1d (diff)
downloadserd-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.c4
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;