1 # $Id: /mirror/googlecode/test-more/t/missing.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
3 if( $ENV{PERL_CORE} ) {
5 @INC = ('../lib', 'lib');
12 # Can't use Test.pm, that's a 5.005 thing.
15 # This has to be a require or else the END block below runs before
16 # Test::Builder's own and the ending diagnostics don't come out right.
17 require Test::Builder;
18 my $TB = Test::Builder->create;
19 $TB->plan(tests => 2);
21 sub is { $TB->is_eq(@_) }
28 require Test::Simple::Catch;
29 my($out, $err) = Test::Simple::Catch::caught();
30 local $ENV{HARNESS_ACTIVE} = 0;
32 Test::Simple->import(tests => 5);
40 My::Test::is($$out, <<OUT);
47 My::Test::is($$err, <<ERR);
50 # You named your test '1 2 3'. You shouldn't use numbers for your test names.
52 # Looks like you planned 5 tests but ran 3.
53 # Looks like you failed 1 test of 3 run.