Subject: | Minor test suite bug |
Test no. 8 (encoding quoted-printable) fails with newer versions of
MIME::QuotedPrint (v3.01 from MIME-Base64-3.02 or higher) because
encode_gp puts a soft line break at the end of the encoded string.
The test should be changed to something like this:
--- test.pl.orig 2004-09-25 01:00:02.000000000 +0200
+++ test.pl 2004-09-25 01:33:26.000000000 +0200
@@ -8,7 +8,8 @@
}
$y= "This is a test\nof various MIME=3Dstuff.";
-is(Email::MIME::Encodings::encode(quotedprint => $x), $y, "enc qp");
+like(Email::MIME::Encodings::encode(quotedprint => $x),
+ qr/$y(=\n)?/, "enc qp");
is(Email::MIME::Encodings::decode(quotedprint => $y), $x, "dec qp");
$z="VGhpcyBpcyBhIHRlc3QKb2YgdmFyaW91cyBNSU1FPXN0dWZmLg==\n";