projects
/
p5sagit/p5-mst-13.2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Move Test::Simple from lib to ext.
[p5sagit/p5-mst-13.2.git]
/
ext
/
Test-Simple
/
t
/
Builder
/
has_plan.t
1
#!/usr/bin/perl -w
2
3
BEGIN {
4
if( $ENV{PERL_CORE} ) {
5
chdir 't';
6
@INC = ('../lib');
7
}
8
}
9
10
use strict;
11
use Test::Builder;
12
13
my $unplanned;
14
15
BEGIN {
16
$unplanned = 'oops';
17
$unplanned = Test::Builder->new->has_plan;
18
};
19
20
use Test::More tests => 2;
21
22
is($unplanned, undef, 'no plan yet defined');
23
is(Test::Builder->new->has_plan, 2, 'has fixed plan');