6 @_ == 2 or die "usage: plan(tests => count)";
8 $what eq 'tests' or die "cannot plan anything but tests";
10 defined $__total && $__total > 0 or die "need a positive number of tests";
11 print "1..$__total\n";
17 print "ok $__ntest # skip: $reason\n"
28 if (!defined $expected) {
29 $ok = !defined $result;
30 } elsif (!defined $result) {
32 } elsif (ref($expected) eq 'Regexp') {
33 die "using regular expression objects is not backwards compatible";
35 $ok = $result eq $expected;
43 print "not ok $__ntest\n"