8 print "1..0 # skipped: Perl::API needed for this test\n";
16 use Perl::API qw(SvCUR SvCUR_set SvLEN);
17 use MIME::Base64 qw(encode_base64 decode_base64);
18 use MIME::QuotedPrint qw(encode_qp decode_qp);
27 # Make sure that encode_base64 does not look beyond SvCUR().
28 # This was fixed in v2.21. Valgrind would also show some
29 # illegal reads on this.
32 ok(encode_base64($a), "YQ==\n");
35 ok(encode_base64($a), "YWJjAA==\n");
37 ok(encode_qp($a), "abc=00");
42 ok(encode_qp($a), "ab");