~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use Automake's simple test infrastructure for running Python-based
[disorder]
/
lib
/
t-mime.c
diff --git
a/lib/t-mime.c
b/lib/t-mime.c
index
eb5ee7c
..
5c3152a
100644
(file)
--- a/
lib/t-mime.c
+++ b/
lib/t-mime.c
@@
-220,7
+220,9
@@
void test_mime(void) {
"Now's the time for all folk to come to the aid of their country.");
#define check_base64(encoded, decoded) do { \
"Now's the time for all folk to come to the aid of their country.");
#define check_base64(encoded, decoded) do { \
- check_string(mime_base64(encoded, 0), decoded); \
+ size_t ns; \
+ check_string(mime_base64(encoded, &ns), decoded); \
+ insist(ns == (sizeof decoded) - 1); \
check_string(mime_to_base64((const uint8_t *)decoded, \
(sizeof decoded) - 1), \
encoded); \
check_string(mime_to_base64((const uint8_t *)decoded, \
(sizeof decoded) - 1), \
encoded); \