4 if( $ENV{PERL_CORE} ) {
6 @INC = ('../lib', 'lib');
15 use Test::Simple::Catch;
16 my($out, $err) = Test::Simple::Catch::caught();
19 # Can't use Test.pm, that's a 5.005 thing.
25 # Utility testing functions.
27 my($test, $name) = @_;
29 $ok .= "not " unless $test;
30 $ok .= "ok $test_num";
31 $ok .= " - $name" if defined $name;
40 sub main::err_ok ($) {
44 my $ok = ok( $got eq $expect );
47 print STDERR "got\n$got\n";
48 print STDERR "expected\n$expect\n";
58 Test::More->import(tests => 4);
59 Test::More->builder->no_ending(1);
62 local $ENV{HARNESS_ACTIVE} = 0;
67 # Failed test ($0 at line 62)
73 # Failed test ($0 at line 72)
80 local $ENV{HARNESS_ACTIVE} = 1;
86 # Failed test ($0 at line 71)
94 # Failed test ($0 at line 84)