diff options
author | Florian Ragwitz <rafl@debian.org> | 2010-09-26 00:34:14 +0200 |
---|---|---|
committer | Florian Ragwitz <rafl@debian.org> | 2010-09-26 01:05:32 +0200 |
commit | 62d37bf083493a0d8ff9c936e0183377500f804a (patch) | |
tree | 0253093b299256b95a75f9d84879e6c5fca47f1c /cpan/Digest-MD5/t/utf8.t | |
parent | 81495e8f23bf1036f3b2867f5e430a10815d7279 (diff) | |
download | perl-62d37bf083493a0d8ff9c936e0183377500f804a.tar.gz |
Upgrade Digest::MD5 from version 2.40 to 2.50
Diffstat (limited to 'cpan/Digest-MD5/t/utf8.t')
-rw-r--r-- | cpan/Digest-MD5/t/utf8.t | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/cpan/Digest-MD5/t/utf8.t b/cpan/Digest-MD5/t/utf8.t index 6cf68b7ae6..cb53f57ed9 100644 --- a/cpan/Digest-MD5/t/utf8.t +++ b/cpan/Digest-MD5/t/utf8.t @@ -7,7 +7,7 @@ BEGIN { } } -print "1..3\n"; +print "1..5\n"; use strict; use Digest::MD5 qw(md5_hex); @@ -33,3 +33,21 @@ print "ok 2\n"; # reference print "not " unless md5_hex("foo\xFF") eq $exp; print "ok 3\n"; + +# autopromotion +if ($] >= 5.007003) { + +my $unistring = "Oslo.pm har sosialt medlemsmøte onsdag 1. April 2008, klokken 18:30. Vi treffes på Marhaba Café, Keysersgate 1."; + +require Encode; +$unistring = Encode::decode_utf8($unistring); +print "not " if ( not utf8::is_utf8($unistring)); +print "ok 4\n"; + +md5_hex($unistring, ""); +print "not " if ( not utf8::is_utf8($unistring)); +print "ok 5\n" + +} else { + print "ok 4 # SKIP Your perl is too old to properly test unicode semantics\nok 5 # SKIP No, really\n"; +} |