diff options
Diffstat (limited to 'tests/serd_test.c')
-rw-r--r-- | tests/serd_test.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/serd_test.c b/tests/serd_test.c index e312ad04..3c2fb630 100644 --- a/tests/serd_test.c +++ b/tests/serd_test.c @@ -206,6 +206,9 @@ main(void) if (blob.n_bytes != blob.n_chars) { FAILF("Blob %zu bytes != %zu chars\n", blob.n_bytes, blob.n_chars); + } else if (blob.n_bytes != strlen((const char*)blob.buf)) { + FAILF("Blob %zu bytes != length %zu\n", + blob.n_bytes, strlen((const char*)blob.buf)); } size_t out_size; |