4 if( $ENV{PERL_CORE} ) {
10 require Test::Harness;
13 # This feature requires a fairly new version of Test::Harness
14 (my $th_version = $Test::Harness::VERSION) =~ s/_//; # for X.Y_Z alpha versions
15 if( $th_version < 2.03 ) {
17 fail "Need Test::Harness 2.03 or up. You have $th_version.";
24 $Why = 'Just testing the todo interface.';
29 fail("Expected failure");
30 fail("Another expected failure");
34 pass("This is not todo");
40 fail("Yet another failure");
43 pass("This is still not todo");
47 local $TODO = "testing that error messages don't leak out of todo";
49 ok( 'this' eq 'that', 'ok' );
51 like( 'this', '/that/', 'like' );
52 is( 'this', 'that', 'is' );
53 isnt( 'this', 'this', 'isnt' );
55 can_ok('Fooble', 'yarble');
56 isa_ok('Fooble', 'yarble');
63 todo_skip "Just testing todo_skip", 2;
65 fail("Just testing todo");
66 die "todo_skip should prevent this";