summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2013-03-25 20:06:16 +0000
committersthen <sthen@openbsd.org>2013-03-25 20:06:16 +0000
commit898184e3e61f9129feb5978fad5a8c6865f00b92 (patch)
tree56f32aefc1eed60b534611007c7856f82697a205 /gnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t
parentPGSHIFT -> PAGE_SHIFT (diff)
downloadwireguard-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-xgnu/usr.bin/perl/cpan/Unicode-Collate/t/variable.t14
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);