8 # Can't use Test.pm, that's a 5.005 thing.
14 # Utility testing functions.
16 my($test, $name) = @_;
18 $ok .= "not " unless $test;
19 $ok .= "ok $test_num";
20 $ok .= " - $name" if defined $name;
31 push @INC, '../t/lib';
32 require Test::Simple::Catch;
33 my($out, $err) = Test::Simple::Catch::caught();
35 Test::Simple->import(tests => 5);
39 ok( 2, 'passing still' );
40 ok( 3, 'still passing' );
46 My::Test::ok($$out eq <<OUT);
55 My::Test::ok($$err =~ /Looks like you failed 2 tests of 5/);
57 # Prevent Test::Simple from exiting with non zero