From: Jarkko Hietaniemi Date: Mon, 23 Apr 2001 17:30:40 +0000 (+0000) Subject: Add one more naughty test for base64; make encoding logic cleaner. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=923761f9e79ff63bd3d74acebe6a93617142b5a7;p=p5sagit%2Fp5-mst-13.2.git Add one more naughty test for base64; make encoding logic cleaner. p4raw-id: //depot/perl@9795 --- diff --git a/t/lib/mimeb64.t b/t/lib/mimeb64.t index b122552..7a61fe9 100644 --- a/t/lib/mimeb64.t +++ b/t/lib/mimeb64.t @@ -5,12 +5,12 @@ BEGIN { use MIME::Base64; -print "1..282\n"; +print "1..283\n"; print "# Testing MIME::Base64-", $MIME::Base64::VERSION, "\n"; BEGIN { - if (ord('A') != 193) { + if (ord('A') == 41) { *ASCII = sub { return $_[0] }; } else { @@ -365,6 +365,7 @@ sub decodeTest ['YWFh====' => ASCII('aaa')], ['YQ' => ASCII('a')], ['Y' => ''], + ['x==' => ''], ['' => ''], [undef() => ''], );