File: plan.t

package info (click to toggle)
libtest-simple-perl 0.62-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 540 kB
  • ctags: 137
  • sloc: perl: 3,674; makefile: 43
file content (19 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl -w

BEGIN {
    if( $ENV{PERL_CORE} ) {
        chdir 't';
        @INC = '../lib';
    }
}

use Test::More;

plan tests => 4;
eval { plan tests => 4 };
like( $@, '/^You tried to plan twice!/',    'disallow double plan' );
eval { plan 'no_plan'  };
like( $@, '/^You tried to plan twice!/',    'disallow chaning plan' );

pass('Just testing plan()');
pass('Testing it some more');