Upgrade to Test-Simple-0.82.
[p5sagit/p5-mst-13.2.git] / lib / Test / Simple / t / plan.t
1 #!/usr/bin/perl -w
2 # $Id: /mirror/googlecode/test-more/t/plan.t 57943 2008-08-18T02:09:22.275428Z brooklyn.kid51  $
3
4 BEGIN {
5     if( $ENV{PERL_CORE} ) {
6         chdir 't';
7         @INC = '../lib';
8     }
9 }
10
11 use Test::More;
12
13 plan tests => 4;
14 eval { plan tests => 4 };
15 is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),
16     'disallow double plan' );
17 eval { plan 'no_plan'  };
18 is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),
19     'disallow changing plan' );
20
21 pass('Just testing plan()');
22 pass('Testing it some more');