blob: 0d3ce89edb11ebabb7aeff04278cae732966d8f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/perl -w
BEGIN {
if( $ENV{PERL_CORE} ) {
chdir 't';
@INC = '../lib';
}
}
use Test::More;
plan tests => 4;
eval { plan tests => 4 };
is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),
'disallow double plan' );
eval { plan 'no_plan' };
is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),
'disallow changing plan' );
pass('Just testing plan()');
pass('Testing it some more');
|