2 if( $ENV{PERL_CORE} ) {
4 @INC = ('../lib', 'lib');
11 # Can't use Test.pm, that's a 5.005 thing.
17 # Utility testing functions.
19 my($test, $name) = @_;
21 $ok .= "not " unless $test;
22 $ok .= "ok $test_num";
23 $ok .= " - $name" if defined $name;
34 require Test::Simple::Catch;
35 my($out, $err) = Test::Simple::Catch::caught();
37 Test::Simple->import(tests => 5);
44 My::Test::ok($$out eq <<OUT);
50 My::Test::ok($$err eq <<ERR);
51 # Failed test ($0 at line 31)
52 # Looks like you planned 5 tests but only ran 2.