2 # $Id: /mirror/googlecode/test-more/t/bad_plan.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51 $
5 if( $ENV{PERL_CORE} ) {
12 # Utility testing functions.
14 my($test, $name) = @_;
16 $ok .= "not " unless $test;
17 $ok .= "ok $test_num";
18 $ok .= " - $name" if defined $name;
28 my $Test = Test::Builder->new;
32 eval { $Test->plan(7); };
33 ok( $@ =~ /^plan\(\) doesn't understand 7/, 'bad plan()' ) ||
36 eval { $Test->plan(wibble => 7); };
37 ok( $@ =~ /^plan\(\) doesn't understand wibble 7/, 'bad plan()' ) ||