summaryrefslogtreecommitdiff
path: root/cpan/dist/MIME-Base64-Perl/t/unicode.t
blob: 028de706f3273970770a34691735f6f05cc3a249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BEGIN {
	unless ($] >= 5.006) {
		print "1..0\n";
		exit(0);
	}
}

print "1..2\n";

require MIME::Base64::Perl;

eval {
    my $tmp = MIME::Base64::Perl::encode_base64(v300);
    print "# enc: $tmp\n";
};
print "# $@" if $@;
print "not " unless $@;
print "ok 1\n";

require MIME::QuotedPrint::Perl;

eval {
    my $tmp = MIME::QuotedPrint::Perl::encode_qp(v300);
    print "# enc: $tmp\n";
};
print "# $@" if $@;
print "not " unless $@;
print "ok 2\n";