diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-10-27 22:06:43 +0000 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2013-10-27 22:06:43 +0000 |
commit | d8e4b4ea5f6bacfe838c2320064e9a286cc61411 (patch) | |
tree | 3ccea13022c1f58fd8a6977d4556eb1005ca34c9 /cpan/Unicode-Collate | |
parent | 63dc8a94deaa9937caf38077e5dc129624128d08 (diff) | |
download | perl-d8e4b4ea5f6bacfe838c2320064e9a286cc61411.tar.gz |
Update Unicode-Collate to CPAN version 1.00
[DELTA]
1.00 Sun Oct 27 13:22:17 2013
- When a subroutine by 'overrideOut' taking a out-of-range value and
returning undef, now the value is treated as if it were U+FFFD.
* 0.99 wrongly calculates implicit weights based on out-of-range values.
- Assertion using unpack 'U' is added. If not only pack('U') but also
unpack('U') of CORE:: don't work as expected, this module will die.
Diffstat (limited to 'cpan/Unicode-Collate')
129 files changed, 783 insertions, 387 deletions
diff --git a/cpan/Unicode-Collate/Collate.pm b/cpan/Unicode-Collate/Collate.pm index 48840ecd74..75a3560ac8 100644 --- a/cpan/Unicode-Collate/Collate.pm +++ b/cpan/Unicode-Collate/Collate.pm @@ -4,6 +4,9 @@ BEGIN { unless ("A" eq pack('U', 0x41)) { die "Unicode::Collate cannot stringify a Unicode code point\n"; } + unless (0x41 == unpack('U', 'A')) { + die "Unicode::Collate cannot get a Unicode code point\n"; + } } use 5.006; @@ -14,7 +17,7 @@ use File::Spec; no warnings 'utf8'; -our $VERSION = '0.99'; +our $VERSION = '1.00'; our $PACKAGE = __PACKAGE__; ### begin XS only ### @@ -608,6 +611,7 @@ sub _pack_override ($$$) { } elsif (defined $r) { return pack(VCE_TEMPLATE, NON_VAR, $r, Min2Wt, Min3Wt, $u); } else { + $u = 0xFFFD if 0x10FFFF < $u; return $der->($u); } } @@ -1500,19 +1504,21 @@ If a false value (including C<undef>) is passed, C<overrideOut> has no effect. C<$Collator-E<gt>change(overrideOut =E<gt> 0)> resets the old one. +B<NOTE ABOUT U+FFFD:> + UCA recommends that out-of-range values should not be ignored for security reasons. Say, C<"pe\x{110000}rl"> should not be equal to C<"perl">. However, C<U+FFFD> is wrongly mapped to a variable collation element in DUCET for Unicode 6.0.0 to 6.2.0, that means out-of-range values will be ignored when C<variable> isn't C<Non-ignorable>. -Unicode 6.3.0 will correct the mapping of C<U+FFFD>. -see L<http://www.unicode.org/reports/tr10/tr10-27.html#Trailing_Weights>. -Such a correction is reproduced by this. +The mapping of C<U+FFFD> is corrected in Unicode 6.3.0. +see L<http://www.unicode.org/reports/tr10/tr10-28.html#Trailing_Weights> +(7.1.4 Trailing Weights). Such a correction is reproduced by this. overrideOut => sub { 0xFFFD }, # CODEREF returning a very large integer -Since Unicode 6.3.0, C<(overrideOut =E<gt> sub { 0xFFFD })> may be unnecesssary. +This workaround is unnecessary since Unicode 6.3.0. =item preprocess diff --git a/cpan/Unicode-Collate/mkheader b/cpan/Unicode-Collate/mkheader index c3d0ebf00a..a575f436e2 100644 --- a/cpan/Unicode-Collate/mkheader +++ b/cpan/Unicode-Collate/mkheader @@ -22,6 +22,9 @@ BEGIN { unless ("A" eq pack('U', 0x41)) { die "Unicode::Collate cannot stringify a Unicode code point\n"; } + unless (0x41 == unpack('U', 'A')) { + die "Unicode::Collate cannot get a Unicode code point\n"; + } } use constant TRUE => 1; diff --git a/cpan/Unicode-Collate/t/altern.t b/cpan/Unicode-Collate/t/altern.t index d87795c18c..8db8f7fabc 100644 --- a/cpan/Unicode-Collate/t/altern.t +++ b/cpan/Unicode-Collate/t/altern.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/backwds.t b/cpan/Unicode-Collate/t/backwds.t index 02309fd994..765acacfee 100644 --- a/cpan/Unicode-Collate/t/backwds.t +++ b/cpan/Unicode-Collate/t/backwds.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_b5.t b/cpan/Unicode-Collate/t/cjk_b5.t index 6039b71a6e..666a063ca7 100644 --- a/cpan/Unicode-Collate/t/cjk_b5.t +++ b/cpan/Unicode-Collate/t/cjk_b5.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_gb.t b/cpan/Unicode-Collate/t/cjk_gb.t index 768faa3dc6..08d236591d 100644 --- a/cpan/Unicode-Collate/t/cjk_gb.t +++ b/cpan/Unicode-Collate/t/cjk_gb.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_ja.t b/cpan/Unicode-Collate/t/cjk_ja.t index 9edd5e0cb1..0ca453c83e 100644 --- a/cpan/Unicode-Collate/t/cjk_ja.t +++ b/cpan/Unicode-Collate/t/cjk_ja.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_ko.t b/cpan/Unicode-Collate/t/cjk_ko.t index 8773c44d40..3deabf67a9 100644 --- a/cpan/Unicode-Collate/t/cjk_ko.t +++ b/cpan/Unicode-Collate/t/cjk_ko.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_py.t b/cpan/Unicode-Collate/t/cjk_py.t index e0802f1e2c..78e0f7c2f8 100644 --- a/cpan/Unicode-Collate/t/cjk_py.t +++ b/cpan/Unicode-Collate/t/cjk_py.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_st.t b/cpan/Unicode-Collate/t/cjk_st.t index 0b232afaf2..a9952faf93 100644 --- a/cpan/Unicode-Collate/t/cjk_st.t +++ b/cpan/Unicode-Collate/t/cjk_st.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjk_zy.t b/cpan/Unicode-Collate/t/cjk_zy.t index 8d8e5e0266..2d17a4a8c5 100644 --- a/cpan/Unicode-Collate/t/cjk_zy.t +++ b/cpan/Unicode-Collate/t/cjk_zy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/cjkrange.t b/cpan/Unicode-Collate/t/cjkrange.t index e3d4f38d73..0acc3793d5 100644 --- a/cpan/Unicode-Collate/t/cjkrange.t +++ b/cpan/Unicode-Collate/t/cjkrange.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/compatui.t b/cpan/Unicode-Collate/t/compatui.t index 822743ed8f..fd64d7f5e7 100644 --- a/cpan/Unicode-Collate/t/compatui.t +++ b/cpan/Unicode-Collate/t/compatui.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/contract.t b/cpan/Unicode-Collate/t/contract.t index da7e967ec9..d659562fb0 100644 --- a/cpan/Unicode-Collate/t/contract.t +++ b/cpan/Unicode-Collate/t/contract.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/default.t b/cpan/Unicode-Collate/t/default.t index 14a96937e6..bdc46dbcb5 100644 --- a/cpan/Unicode-Collate/t/default.t +++ b/cpan/Unicode-Collate/t/default.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/hangtype.t b/cpan/Unicode-Collate/t/hangtype.t index 5aa7d49153..cb0391ef5b 100644 --- a/cpan/Unicode-Collate/t/hangtype.t +++ b/cpan/Unicode-Collate/t/hangtype.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/hangul.t b/cpan/Unicode-Collate/t/hangul.t index 9df23448d7..364bf37200 100644 --- a/cpan/Unicode-Collate/t/hangul.t +++ b/cpan/Unicode-Collate/t/hangul.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/ident.t b/cpan/Unicode-Collate/t/ident.t index 4f132d4ec1..0b5ddb397d 100644 --- a/cpan/Unicode-Collate/t/ident.t +++ b/cpan/Unicode-Collate/t/ident.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/iglevel2.t b/cpan/Unicode-Collate/t/iglevel2.t index ff519aa076..f56a5ac977 100644 --- a/cpan/Unicode-Collate/t/iglevel2.t +++ b/cpan/Unicode-Collate/t/iglevel2.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/ignor.t b/cpan/Unicode-Collate/t/ignor.t index 6e4a4e8cf9..f1606ae5e0 100644 --- a/cpan/Unicode-Collate/t/ignor.t +++ b/cpan/Unicode-Collate/t/ignor.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/illegal.t b/cpan/Unicode-Collate/t/illegal.t index 7fa81e43e3..905f4f6b85 100644 --- a/cpan/Unicode-Collate/t/illegal.t +++ b/cpan/Unicode-Collate/t/illegal.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { @@ -25,7 +28,7 @@ BEGIN { use strict; use warnings; -BEGIN { $| = 1; print "1..127\n"; } # 77 + 5 x @Versions +BEGIN { $| = 1; print "1..131\n"; } # 81 + 5 x @Versions my $count = 0; sub ok ($;$) { my $p = my $r = shift; @@ -222,3 +225,9 @@ $out->change(overrideOut => 0); ok($out->lt('', "\x{123456}")); ok($out->eq("\x{FFFD}", "\x{123456}")); +$out->change(overrideOut => sub { undef }); +ok($out->lt('', "\x{123456}")); +ok($out->eq("\x{FFFD}", "\x{123456}")); +ok($out->eq("\x{FFFD}", "\x{21FFFFF}")); +ok($out->eq("\x{FFFD}", "\x{2200000}")); + diff --git a/cpan/Unicode-Collate/t/illegalp.t b/cpan/Unicode-Collate/t/illegalp.t index 2cdd590daa..04c1d1c98d 100644 --- a/cpan/Unicode-Collate/t/illegalp.t +++ b/cpan/Unicode-Collate/t/illegalp.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/index.t b/cpan/Unicode-Collate/t/index.t index 11cf618f5a..51dd0ae5bd 100644 --- a/cpan/Unicode-Collate/t/index.t +++ b/cpan/Unicode-Collate/t/index.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_af.t b/cpan/Unicode-Collate/t/loc_af.t index 7756c04bf1..51176c90e4 100644 --- a/cpan/Unicode-Collate/t/loc_af.t +++ b/cpan/Unicode-Collate/t/loc_af.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ar.t b/cpan/Unicode-Collate/t/loc_ar.t index ada2ba37bf..0ce7950aad 100644 --- a/cpan/Unicode-Collate/t/loc_ar.t +++ b/cpan/Unicode-Collate/t/loc_ar.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_as.t b/cpan/Unicode-Collate/t/loc_as.t index e188f64078..2d28f90f86 100644 --- a/cpan/Unicode-Collate/t/loc_as.t +++ b/cpan/Unicode-Collate/t/loc_as.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_az.t b/cpan/Unicode-Collate/t/loc_az.t index 5f9374a495..855e6bc084 100644 --- a/cpan/Unicode-Collate/t/loc_az.t +++ b/cpan/Unicode-Collate/t/loc_az.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_be.t b/cpan/Unicode-Collate/t/loc_be.t index 22a045c29a..5d1dfeeb29 100644 --- a/cpan/Unicode-Collate/t/loc_be.t +++ b/cpan/Unicode-Collate/t/loc_be.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_bg.t b/cpan/Unicode-Collate/t/loc_bg.t index a17ef54012..792b4b10fb 100644 --- a/cpan/Unicode-Collate/t/loc_bg.t +++ b/cpan/Unicode-Collate/t/loc_bg.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_bn.t b/cpan/Unicode-Collate/t/loc_bn.t index f0fd826829..385cf5b2fa 100644 --- a/cpan/Unicode-Collate/t/loc_bn.t +++ b/cpan/Unicode-Collate/t/loc_bn.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_bs.t b/cpan/Unicode-Collate/t/loc_bs.t index 9325f7597e..f798734d1e 100644 --- a/cpan/Unicode-Collate/t/loc_bs.t +++ b/cpan/Unicode-Collate/t/loc_bs.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_bscy.t b/cpan/Unicode-Collate/t/loc_bscy.t index b2283ddf50..ce3457f981 100644 --- a/cpan/Unicode-Collate/t/loc_bscy.t +++ b/cpan/Unicode-Collate/t/loc_bscy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ca.t b/cpan/Unicode-Collate/t/loc_ca.t index f574595749..80923ffe62 100644 --- a/cpan/Unicode-Collate/t/loc_ca.t +++ b/cpan/Unicode-Collate/t/loc_ca.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_cjk.t b/cpan/Unicode-Collate/t/loc_cjk.t index 79f0d6d3be..2466787c61 100644 --- a/cpan/Unicode-Collate/t/loc_cjk.t +++ b/cpan/Unicode-Collate/t/loc_cjk.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_cjkc.t b/cpan/Unicode-Collate/t/loc_cjkc.t index 4f9f9e9152..f7ae272ab9 100644 --- a/cpan/Unicode-Collate/t/loc_cjkc.t +++ b/cpan/Unicode-Collate/t/loc_cjkc.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_cs.t b/cpan/Unicode-Collate/t/loc_cs.t index 0c27c8bd62..4f309eeb30 100644 --- a/cpan/Unicode-Collate/t/loc_cs.t +++ b/cpan/Unicode-Collate/t/loc_cs.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_cy.t b/cpan/Unicode-Collate/t/loc_cy.t index 9daf66167b..5c90162f64 100644 --- a/cpan/Unicode-Collate/t/loc_cy.t +++ b/cpan/Unicode-Collate/t/loc_cy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_cyrl.t b/cpan/Unicode-Collate/t/loc_cyrl.t index 47cb27d9aa..d625d5dc3b 100644 --- a/cpan/Unicode-Collate/t/loc_cyrl.t +++ b/cpan/Unicode-Collate/t/loc_cyrl.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_da.t b/cpan/Unicode-Collate/t/loc_da.t index 48639e2aad..cb25a55b80 100644 --- a/cpan/Unicode-Collate/t/loc_da.t +++ b/cpan/Unicode-Collate/t/loc_da.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_de.t b/cpan/Unicode-Collate/t/loc_de.t index 402be02767..a1f191ceea 100644 --- a/cpan/Unicode-Collate/t/loc_de.t +++ b/cpan/Unicode-Collate/t/loc_de.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_deph.t b/cpan/Unicode-Collate/t/loc_deph.t index a9c9d2b5ba..4a11df4153 100644 --- a/cpan/Unicode-Collate/t/loc_deph.t +++ b/cpan/Unicode-Collate/t/loc_deph.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ee.t b/cpan/Unicode-Collate/t/loc_ee.t index 3b0ea274a7..475e194cea 100644 --- a/cpan/Unicode-Collate/t/loc_ee.t +++ b/cpan/Unicode-Collate/t/loc_ee.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_eo.t b/cpan/Unicode-Collate/t/loc_eo.t index 997a0458ea..3ab88907ed 100644 --- a/cpan/Unicode-Collate/t/loc_eo.t +++ b/cpan/Unicode-Collate/t/loc_eo.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_es.t b/cpan/Unicode-Collate/t/loc_es.t index 81665ac18e..8ee72a4640 100644 --- a/cpan/Unicode-Collate/t/loc_es.t +++ b/cpan/Unicode-Collate/t/loc_es.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_estr.t b/cpan/Unicode-Collate/t/loc_estr.t index 448923005b..45b7797a26 100644 --- a/cpan/Unicode-Collate/t/loc_estr.t +++ b/cpan/Unicode-Collate/t/loc_estr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_et.t b/cpan/Unicode-Collate/t/loc_et.t index 5a6a774cb6..2c0e60bda8 100644 --- a/cpan/Unicode-Collate/t/loc_et.t +++ b/cpan/Unicode-Collate/t/loc_et.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fa.t b/cpan/Unicode-Collate/t/loc_fa.t index 94bcede172..7cc467812d 100644 --- a/cpan/Unicode-Collate/t/loc_fa.t +++ b/cpan/Unicode-Collate/t/loc_fa.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fi.t b/cpan/Unicode-Collate/t/loc_fi.t index d4605329d2..ab1881803b 100644 --- a/cpan/Unicode-Collate/t/loc_fi.t +++ b/cpan/Unicode-Collate/t/loc_fi.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fil.t b/cpan/Unicode-Collate/t/loc_fil.t index 379d28519f..77f0eacc96 100644 --- a/cpan/Unicode-Collate/t/loc_fil.t +++ b/cpan/Unicode-Collate/t/loc_fil.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fiph.t b/cpan/Unicode-Collate/t/loc_fiph.t index ba08bcb9e6..1b8c578b99 100644 --- a/cpan/Unicode-Collate/t/loc_fiph.t +++ b/cpan/Unicode-Collate/t/loc_fiph.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fo.t b/cpan/Unicode-Collate/t/loc_fo.t index c0aa761f17..bfb50aa38e 100644 --- a/cpan/Unicode-Collate/t/loc_fo.t +++ b/cpan/Unicode-Collate/t/loc_fo.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_fr.t b/cpan/Unicode-Collate/t/loc_fr.t index 66eff34b4c..f080eb3a46 100644 --- a/cpan/Unicode-Collate/t/loc_fr.t +++ b/cpan/Unicode-Collate/t/loc_fr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_gu.t b/cpan/Unicode-Collate/t/loc_gu.t index 4b8732ab64..f9c4b21625 100644 --- a/cpan/Unicode-Collate/t/loc_gu.t +++ b/cpan/Unicode-Collate/t/loc_gu.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ha.t b/cpan/Unicode-Collate/t/loc_ha.t index 17af493106..3740881d5a 100644 --- a/cpan/Unicode-Collate/t/loc_ha.t +++ b/cpan/Unicode-Collate/t/loc_ha.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_haw.t b/cpan/Unicode-Collate/t/loc_haw.t index 660cb0937c..c2e43acbfe 100644 --- a/cpan/Unicode-Collate/t/loc_haw.t +++ b/cpan/Unicode-Collate/t/loc_haw.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_hi.t b/cpan/Unicode-Collate/t/loc_hi.t index 847722d77e..9a6b678791 100644 --- a/cpan/Unicode-Collate/t/loc_hi.t +++ b/cpan/Unicode-Collate/t/loc_hi.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_hr.t b/cpan/Unicode-Collate/t/loc_hr.t index 7d49e6b33c..c539bbeab6 100644 --- a/cpan/Unicode-Collate/t/loc_hr.t +++ b/cpan/Unicode-Collate/t/loc_hr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_hu.t b/cpan/Unicode-Collate/t/loc_hu.t index c8ef8d3e78..37c87e4258 100644 --- a/cpan/Unicode-Collate/t/loc_hu.t +++ b/cpan/Unicode-Collate/t/loc_hu.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_hy.t b/cpan/Unicode-Collate/t/loc_hy.t index 3ff93e336c..a7282665a5 100644 --- a/cpan/Unicode-Collate/t/loc_hy.t +++ b/cpan/Unicode-Collate/t/loc_hy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ig.t b/cpan/Unicode-Collate/t/loc_ig.t index 1c0f74b5e0..3d07700a11 100644 --- a/cpan/Unicode-Collate/t/loc_ig.t +++ b/cpan/Unicode-Collate/t/loc_ig.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_is.t b/cpan/Unicode-Collate/t/loc_is.t index c4cd2b4c27..6b0eaddef1 100644 --- a/cpan/Unicode-Collate/t/loc_is.t +++ b/cpan/Unicode-Collate/t/loc_is.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ja.t b/cpan/Unicode-Collate/t/loc_ja.t index c4353d61f3..7fa712574a 100644 --- a/cpan/Unicode-Collate/t/loc_ja.t +++ b/cpan/Unicode-Collate/t/loc_ja.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_jait.t b/cpan/Unicode-Collate/t/loc_jait.t index 70d7b57fe2..558f3d1e92 100644 --- a/cpan/Unicode-Collate/t/loc_jait.t +++ b/cpan/Unicode-Collate/t/loc_jait.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_japr.t b/cpan/Unicode-Collate/t/loc_japr.t index 4b7b67b062..e02a76d69e 100644 --- a/cpan/Unicode-Collate/t/loc_japr.t +++ b/cpan/Unicode-Collate/t/loc_japr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_kk.t b/cpan/Unicode-Collate/t/loc_kk.t index ef8b7d4686..294e974c0c 100644 --- a/cpan/Unicode-Collate/t/loc_kk.t +++ b/cpan/Unicode-Collate/t/loc_kk.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_kl.t b/cpan/Unicode-Collate/t/loc_kl.t index 3e1197ef61..6a9b1766b9 100644 --- a/cpan/Unicode-Collate/t/loc_kl.t +++ b/cpan/Unicode-Collate/t/loc_kl.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_kn.t b/cpan/Unicode-Collate/t/loc_kn.t index 8d2f39eea3..3c273258ba 100644 --- a/cpan/Unicode-Collate/t/loc_kn.t +++ b/cpan/Unicode-Collate/t/loc_kn.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ko.t b/cpan/Unicode-Collate/t/loc_ko.t index 2fb0da7dad..daa5e58763 100644 --- a/cpan/Unicode-Collate/t/loc_ko.t +++ b/cpan/Unicode-Collate/t/loc_ko.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_kok.t b/cpan/Unicode-Collate/t/loc_kok.t index 4581bdccf1..0b87dcbdc0 100644 --- a/cpan/Unicode-Collate/t/loc_kok.t +++ b/cpan/Unicode-Collate/t/loc_kok.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ln.t b/cpan/Unicode-Collate/t/loc_ln.t index b3e46fa7fe..d472e6b6c8 100644 --- a/cpan/Unicode-Collate/t/loc_ln.t +++ b/cpan/Unicode-Collate/t/loc_ln.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_lt.t b/cpan/Unicode-Collate/t/loc_lt.t index b2340f6783..ff1840cd0d 100644 --- a/cpan/Unicode-Collate/t/loc_lt.t +++ b/cpan/Unicode-Collate/t/loc_lt.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_lv.t b/cpan/Unicode-Collate/t/loc_lv.t index f8593341bf..04f949c1b1 100644 --- a/cpan/Unicode-Collate/t/loc_lv.t +++ b/cpan/Unicode-Collate/t/loc_lv.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_mk.t b/cpan/Unicode-Collate/t/loc_mk.t index c0f75b54a9..df575840eb 100644 --- a/cpan/Unicode-Collate/t/loc_mk.t +++ b/cpan/Unicode-Collate/t/loc_mk.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ml.t b/cpan/Unicode-Collate/t/loc_ml.t index fca789fafe..ac25fe5141 100644 --- a/cpan/Unicode-Collate/t/loc_ml.t +++ b/cpan/Unicode-Collate/t/loc_ml.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_mr.t b/cpan/Unicode-Collate/t/loc_mr.t index 8c601f0027..0761fe8459 100644 --- a/cpan/Unicode-Collate/t/loc_mr.t +++ b/cpan/Unicode-Collate/t/loc_mr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_mt.t b/cpan/Unicode-Collate/t/loc_mt.t index f582accd3a..0f7268b0e0 100644 --- a/cpan/Unicode-Collate/t/loc_mt.t +++ b/cpan/Unicode-Collate/t/loc_mt.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_nb.t b/cpan/Unicode-Collate/t/loc_nb.t index c3bc54a34a..1ca04d12f5 100644 --- a/cpan/Unicode-Collate/t/loc_nb.t +++ b/cpan/Unicode-Collate/t/loc_nb.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_nn.t b/cpan/Unicode-Collate/t/loc_nn.t index 671eff7ab4..4133f7505a 100644 --- a/cpan/Unicode-Collate/t/loc_nn.t +++ b/cpan/Unicode-Collate/t/loc_nn.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_nso.t b/cpan/Unicode-Collate/t/loc_nso.t index f455c67382..935f8b2e60 100644 --- a/cpan/Unicode-Collate/t/loc_nso.t +++ b/cpan/Unicode-Collate/t/loc_nso.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_om.t b/cpan/Unicode-Collate/t/loc_om.t index 74e6ce501d..91e78bba22 100644 --- a/cpan/Unicode-Collate/t/loc_om.t +++ b/cpan/Unicode-Collate/t/loc_om.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_or.t b/cpan/Unicode-Collate/t/loc_or.t index f29e615eed..4fffaef151 100644 --- a/cpan/Unicode-Collate/t/loc_or.t +++ b/cpan/Unicode-Collate/t/loc_or.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_pa.t b/cpan/Unicode-Collate/t/loc_pa.t index 6c13e40777..af5b5287c9 100644 --- a/cpan/Unicode-Collate/t/loc_pa.t +++ b/cpan/Unicode-Collate/t/loc_pa.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_pl.t b/cpan/Unicode-Collate/t/loc_pl.t index ba4fb7eab1..5797b7d75d 100644 --- a/cpan/Unicode-Collate/t/loc_pl.t +++ b/cpan/Unicode-Collate/t/loc_pl.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ro.t b/cpan/Unicode-Collate/t/loc_ro.t index ff213981ce..c92085873f 100644 --- a/cpan/Unicode-Collate/t/loc_ro.t +++ b/cpan/Unicode-Collate/t/loc_ro.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ru.t b/cpan/Unicode-Collate/t/loc_ru.t index 0ee7fe373f..fb7f3f4b4f 100644 --- a/cpan/Unicode-Collate/t/loc_ru.t +++ b/cpan/Unicode-Collate/t/loc_ru.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sa.t b/cpan/Unicode-Collate/t/loc_sa.t index 41f344eace..0420f58a57 100644 --- a/cpan/Unicode-Collate/t/loc_sa.t +++ b/cpan/Unicode-Collate/t/loc_sa.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_se.t b/cpan/Unicode-Collate/t/loc_se.t index 5e46a21d4d..0908e80902 100644 --- a/cpan/Unicode-Collate/t/loc_se.t +++ b/cpan/Unicode-Collate/t/loc_se.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_si.t b/cpan/Unicode-Collate/t/loc_si.t index adbb40169b..fab3882e5a 100644 --- a/cpan/Unicode-Collate/t/loc_si.t +++ b/cpan/Unicode-Collate/t/loc_si.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sidt.t b/cpan/Unicode-Collate/t/loc_sidt.t index f5cbc54680..5bd122a447 100644 --- a/cpan/Unicode-Collate/t/loc_sidt.t +++ b/cpan/Unicode-Collate/t/loc_sidt.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sk.t b/cpan/Unicode-Collate/t/loc_sk.t index 1367076832..5bcf24f1ba 100644 --- a/cpan/Unicode-Collate/t/loc_sk.t +++ b/cpan/Unicode-Collate/t/loc_sk.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sl.t b/cpan/Unicode-Collate/t/loc_sl.t index 56dee6000b..5d577e60dc 100644 --- a/cpan/Unicode-Collate/t/loc_sl.t +++ b/cpan/Unicode-Collate/t/loc_sl.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sq.t b/cpan/Unicode-Collate/t/loc_sq.t index 3582d3e509..03d48c2105 100644 --- a/cpan/Unicode-Collate/t/loc_sq.t +++ b/cpan/Unicode-Collate/t/loc_sq.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sr.t b/cpan/Unicode-Collate/t/loc_sr.t index 1b031048c7..8eea66a8af 100644 --- a/cpan/Unicode-Collate/t/loc_sr.t +++ b/cpan/Unicode-Collate/t/loc_sr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_srla.t b/cpan/Unicode-Collate/t/loc_srla.t index c30ae69a0c..b1185552ec 100644 --- a/cpan/Unicode-Collate/t/loc_srla.t +++ b/cpan/Unicode-Collate/t/loc_srla.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sv.t b/cpan/Unicode-Collate/t/loc_sv.t index 0d250f55f8..daccc68393 100644 --- a/cpan/Unicode-Collate/t/loc_sv.t +++ b/cpan/Unicode-Collate/t/loc_sv.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_svrf.t b/cpan/Unicode-Collate/t/loc_svrf.t index 38a47c2503..b1d587de2b 100644 --- a/cpan/Unicode-Collate/t/loc_svrf.t +++ b/cpan/Unicode-Collate/t/loc_svrf.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_sw.t b/cpan/Unicode-Collate/t/loc_sw.t index 74d6710b2a..8ede629f08 100644 --- a/cpan/Unicode-Collate/t/loc_sw.t +++ b/cpan/Unicode-Collate/t/loc_sw.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ta.t b/cpan/Unicode-Collate/t/loc_ta.t index fa84bd89fc..e9a85ee9aa 100644 --- a/cpan/Unicode-Collate/t/loc_ta.t +++ b/cpan/Unicode-Collate/t/loc_ta.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_te.t b/cpan/Unicode-Collate/t/loc_te.t index be11514fbb..44a66db881 100644 --- a/cpan/Unicode-Collate/t/loc_te.t +++ b/cpan/Unicode-Collate/t/loc_te.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_test.t b/cpan/Unicode-Collate/t/loc_test.t index 191334402e..30c912003d 100644 --- a/cpan/Unicode-Collate/t/loc_test.t +++ b/cpan/Unicode-Collate/t/loc_test.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_th.t b/cpan/Unicode-Collate/t/loc_th.t index 727b70649a..246b3ff7ce 100644 --- a/cpan/Unicode-Collate/t/loc_th.t +++ b/cpan/Unicode-Collate/t/loc_th.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_tn.t b/cpan/Unicode-Collate/t/loc_tn.t index b0944c1c5d..bf6c352839 100644 --- a/cpan/Unicode-Collate/t/loc_tn.t +++ b/cpan/Unicode-Collate/t/loc_tn.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_to.t b/cpan/Unicode-Collate/t/loc_to.t index 8fddb91f89..c7e78c1c38 100644 --- a/cpan/Unicode-Collate/t/loc_to.t +++ b/cpan/Unicode-Collate/t/loc_to.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_tr.t b/cpan/Unicode-Collate/t/loc_tr.t index c6102ed299..252c85b13d 100644 --- a/cpan/Unicode-Collate/t/loc_tr.t +++ b/cpan/Unicode-Collate/t/loc_tr.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_uk.t b/cpan/Unicode-Collate/t/loc_uk.t index 9867049830..de1cc3753d 100644 --- a/cpan/Unicode-Collate/t/loc_uk.t +++ b/cpan/Unicode-Collate/t/loc_uk.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_ur.t b/cpan/Unicode-Collate/t/loc_ur.t index e9093e5993..9a4c464e95 100644 --- a/cpan/Unicode-Collate/t/loc_ur.t +++ b/cpan/Unicode-Collate/t/loc_ur.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_vi.t b/cpan/Unicode-Collate/t/loc_vi.t index a0e8969b26..265c2ee77b 100644 --- a/cpan/Unicode-Collate/t/loc_vi.t +++ b/cpan/Unicode-Collate/t/loc_vi.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_wae.t b/cpan/Unicode-Collate/t/loc_wae.t index 882b112ae9..bf765f7ad1 100644 --- a/cpan/Unicode-Collate/t/loc_wae.t +++ b/cpan/Unicode-Collate/t/loc_wae.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_wo.t b/cpan/Unicode-Collate/t/loc_wo.t index ece0f34946..7cf22125dc 100644 --- a/cpan/Unicode-Collate/t/loc_wo.t +++ b/cpan/Unicode-Collate/t/loc_wo.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_yo.t b/cpan/Unicode-Collate/t/loc_yo.t index 6c37bb8c53..f3f4753172 100644 --- a/cpan/Unicode-Collate/t/loc_yo.t +++ b/cpan/Unicode-Collate/t/loc_yo.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zh.t b/cpan/Unicode-Collate/t/loc_zh.t index f6f767daf3..65ca65ada1 100644 --- a/cpan/Unicode-Collate/t/loc_zh.t +++ b/cpan/Unicode-Collate/t/loc_zh.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zhb5.t b/cpan/Unicode-Collate/t/loc_zhb5.t index 789cfb6649..cddec6f8b5 100644 --- a/cpan/Unicode-Collate/t/loc_zhb5.t +++ b/cpan/Unicode-Collate/t/loc_zhb5.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zhgb.t b/cpan/Unicode-Collate/t/loc_zhgb.t index 90464684e6..dd0fa107f7 100644 --- a/cpan/Unicode-Collate/t/loc_zhgb.t +++ b/cpan/Unicode-Collate/t/loc_zhgb.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zhpy.t b/cpan/Unicode-Collate/t/loc_zhpy.t index 1481deeb2a..4e9ff24ed5 100644 --- a/cpan/Unicode-Collate/t/loc_zhpy.t +++ b/cpan/Unicode-Collate/t/loc_zhpy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zhst.t b/cpan/Unicode-Collate/t/loc_zhst.t index 5c35f2afd1..2f8b106317 100644 --- a/cpan/Unicode-Collate/t/loc_zhst.t +++ b/cpan/Unicode-Collate/t/loc_zhst.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/loc_zhzy.t b/cpan/Unicode-Collate/t/loc_zhzy.t index bbbf41fb0c..7c816eba75 100644 --- a/cpan/Unicode-Collate/t/loc_zhzy.t +++ b/cpan/Unicode-Collate/t/loc_zhzy.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/nonchar.t b/cpan/Unicode-Collate/t/nonchar.t index 2b47b28043..8a2a7e627b 100644 --- a/cpan/Unicode-Collate/t/nonchar.t +++ b/cpan/Unicode-Collate/t/nonchar.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/normal.t b/cpan/Unicode-Collate/t/normal.t index 8de502e0db..f0185137ff 100644 --- a/cpan/Unicode-Collate/t/normal.t +++ b/cpan/Unicode-Collate/t/normal.t @@ -1,7 +1,10 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/notable.t b/cpan/Unicode-Collate/t/notable.t index 124351760f..f9baf8a87a 100644 --- a/cpan/Unicode-Collate/t/notable.t +++ b/cpan/Unicode-Collate/t/notable.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/overcjk0.t b/cpan/Unicode-Collate/t/overcjk0.t index 081f57b158..544f71aefb 100644 --- a/cpan/Unicode-Collate/t/overcjk0.t +++ b/cpan/Unicode-Collate/t/overcjk0.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/overcjk1.t b/cpan/Unicode-Collate/t/overcjk1.t index 7bee17658a..c7216cc236 100644 --- a/cpan/Unicode-Collate/t/overcjk1.t +++ b/cpan/Unicode-Collate/t/overcjk1.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/override.t b/cpan/Unicode-Collate/t/override.t index 025a3698ab..ab6b8f6f15 100644 --- a/cpan/Unicode-Collate/t/override.t +++ b/cpan/Unicode-Collate/t/override.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/rearrang.t b/cpan/Unicode-Collate/t/rearrang.t index dd48af83cc..678293873d 100644 --- a/cpan/Unicode-Collate/t/rearrang.t +++ b/cpan/Unicode-Collate/t/rearrang.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/rewrite.t b/cpan/Unicode-Collate/t/rewrite.t index 7c58e16321..0ac0aaea7e 100644 --- a/cpan/Unicode-Collate/t/rewrite.t +++ b/cpan/Unicode-Collate/t/rewrite.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/test.t b/cpan/Unicode-Collate/t/test.t index 00feeadad9..37f795d9d2 100644 --- a/cpan/Unicode-Collate/t/test.t +++ b/cpan/Unicode-Collate/t/test.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/trailwt.t b/cpan/Unicode-Collate/t/trailwt.t index 1a6966e5a6..74991e7fcf 100644 --- a/cpan/Unicode-Collate/t/trailwt.t +++ b/cpan/Unicode-Collate/t/trailwt.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/variable.t b/cpan/Unicode-Collate/t/variable.t index 02cc728e98..82a8877f9e 100644 --- a/cpan/Unicode-Collate/t/variable.t +++ b/cpan/Unicode-Collate/t/variable.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/version.t b/cpan/Unicode-Collate/t/version.t index 2f0ab99c9c..03cf44d011 100644 --- a/cpan/Unicode-Collate/t/version.t +++ b/cpan/Unicode-Collate/t/version.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { diff --git a/cpan/Unicode-Collate/t/view.t b/cpan/Unicode-Collate/t/view.t index 4759533823..bf5c1137bc 100644 --- a/cpan/Unicode-Collate/t/view.t +++ b/cpan/Unicode-Collate/t/view.t @@ -1,8 +1,11 @@ BEGIN { - unless ("A" eq pack('U', 0x41)) { - print "1..0 # Unicode::Collate " . - "cannot stringify a Unicode code point\n"; + unless ('A' eq pack('U', 0x41)) { + print "1..0 # Unicode::Collate cannot pack a Unicode code point\n"; + exit 0; + } + unless (0x41 == unpack('U', 'A')) { + print "1..0 # Unicode::Collate cannot get a Unicode code point\n"; exit 0; } if ($ENV{PERL_CORE}) { |