6 # Can't use Test.pm, that's a 5.005 thing.
12 # Utility testing functions.
14 my($test, $name) = @_;
16 $ok .= "not " unless $test;
17 $ok .= "ok $test_num";
18 $ok .= " - $name" if defined $name;
29 push @INC, '../t/lib';
30 require Test::Simple::Catch;
31 my($out, $err) = Test::Simple::Catch::caught();
33 Test::Simple->import(tests => 3);
43 My::Test::ok($$out eq <<OUT);
52 My::Test::ok($$err =~ /Looks like you planned 3 tests but ran 2 extra/);