Path : /proc/3/cwd/usr/share/doc/perl-Test-Simple-0.98/t/Builder/ |
Current File : //proc/3/cwd/usr/share/doc/perl-Test-Simple-0.98/t/Builder/has_plan.t |
#!/usr/bin/perl -w BEGIN { if( $ENV{PERL_CORE} ) { chdir 't'; @INC = ('../lib'); } } use strict; use Test::Builder; my $unplanned; BEGIN { $unplanned = 'oops'; $unplanned = Test::Builder->new->has_plan; }; use Test::More tests => 2; is($unplanned, undef, 'no plan yet defined'); is(Test::Builder->new->has_plan, 2, 'has fixed plan');