aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-07-14 10:26:23 +0200
committerDavid Robillard <d@drobilla.net>2018-07-14 10:26:23 +0200
commit88ac6c757f5a40a604c14775cf11552fa657f0ad (patch)
tree875ac9b954b48750b2548e625b33588883e99643 /tests
parent7e10a58373dbbb850c4f4daeb90ce2d9739da441 (diff)
downloadserd-88ac6c757f5a40a604c14775cf11552fa657f0ad.tar.gz
serd-88ac6c757f5a40a604c14775cf11552fa657f0ad.tar.bz2
serd-88ac6c757f5a40a604c14775cf11552fa657f0ad.zip
Fix length of base64 encoded nodes
Diffstat (limited to 'tests')
-rw-r--r--tests/serd_test.c3
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;