diff options
author | 2013-03-25 20:06:16 +0000 | |
---|---|---|
committer | 2013-03-25 20:06:16 +0000 | |
commit | 898184e3e61f9129feb5978fad5a8c6865f00b92 (patch) | |
tree | 56f32aefc1eed60b534611007c7856f82697a205 /gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t | |
parent | PGSHIFT -> PAGE_SHIFT (diff) | |
download | wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.tar.xz wireguard-openbsd-898184e3e61f9129feb5978fad5a8c6865f00b92.zip |
import perl 5.16.3 from CPAN - worked on by Andrew Fresh and myself
Diffstat (limited to 'gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t')
-rwxr-xr-x | gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t b/gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t index 1a6bd6495bc..02cc728e980 100755 --- a/gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t +++ b/gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t @@ -11,11 +11,19 @@ BEGIN { } } -use Test; -BEGIN { plan tests => 37 }; - use strict; use warnings; +BEGIN { $| = 1; print "1..37\n"; } +my $count = 0; +sub ok ($;$) { + my $p = my $r = shift; + if (@_) { + my $x = shift; + $p = !defined $x ? !defined $r : !defined $r ? 0 : $r eq $x; + } + print $p ? "ok" : "not ok", ' ', ++$count, "\n"; +} + use Unicode::Collate; ok(1); |