1 # Can't use Test.pm, that's a 5.005 thing.
13 # Utility testing functions.
15 my($test, $name) = @_;
17 $ok .= "not " unless $test;
18 $ok .= "ok $test_num";
19 $ok .= " - $name" if defined $name;
30 push @INC, '../t/lib';
31 require Test::Simple::Catch;
32 my($out, $err) = Test::Simple::Catch::caught();
34 Test::Simple->import(tests => 5);
41 My::Test::ok($$out eq <<OUT);
47 My::Test::ok($$err =~ /Looks like you planned 5 tests but only ran 2/);