diff options
Diffstat (limited to 'tests/cram/test_base64.t')
-rw-r--r-- | tests/cram/test_base64.t | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/tests/cram/test_base64.t b/tests/cram/test_base64.t index 0a7a9d5..ade41fb 100644 --- a/tests/cram/test_base64.t +++ b/tests/cram/test_base64.t @@ -20,14 +20,38 @@ check that base64 is producing expected results: 5 fooba 6 foobar + $ test-b64-san + 0 + 4 Zg== + 4 Zm8= + 4 Zm9v + 8 Zm9vYg== + 8 Zm9vYmE= + 8 Zm9vYmFy + 0 + 1 f + 2 fo + 3 foo + 4 foob + 5 fooba + 6 foobar + check that b64_encode and b64_decode assert invalid input - $ alias check="egrep '(dumped|Assertion)' | sed 's;.*\(b64_.*code\).*\(Assertion.*$\);\1: \2;' | LC_ALL=C sort" + $ alias check="egrep '(dumped|Assertion)' output.log | sed 's;.*\(b64_.*code\).*\(Assertion.*$\);\1: \2;' | LC_ALL=C sort" + + $ test-b64_decode 2> output.log; check + Aborted (core dumped) + b64_decode: Assertion `dest && targsize > 0' failed. + + $ test-b64_encode 2> output.log; check + Aborted (core dumped) + b64_encode: Assertion `dest && targsize > 0' failed. - $ test-b64_decode 2>&1 | check + $ test-b64_decode-san 2> output.log; check Aborted (core dumped) b64_decode: Assertion `dest && targsize > 0' failed. - $ test-b64_encode 2>&1 | check + $ test-b64_encode-san 2> output.log; check Aborted (core dumped) b64_encode: Assertion `dest && targsize > 0' failed. |