Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libtest-simple-perl / libtest-simple-perl-0.80 / t / 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 Test::More;
11
12 plan tests => 4;
13 eval { plan tests => 4 };
14 is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),
15     'disallow double plan' );
16 eval { plan 'no_plan'  };
17 is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),
18     'disallow changing plan' );
19
20 pass('Just testing plan()');
21 pass('Testing it some more');