Move Test::Simple from lib to ext.
[p5sagit/p5-mst-13.2.git] / ext / Test-Simple / t / plan.t
CommitLineData
60ffb308 1#!/usr/bin/perl -w
2
33459055 3BEGIN {
a9153838 4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = '../lib';
7 }
33459055 8}
9
10use Test::More;
11
a344be10 12plan tests => 4;
13eval { plan tests => 4 };
b7f9bbeb 14is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ - 1),
15 'disallow double plan' );
a344be10 16eval { plan 'no_plan' };
b7f9bbeb 17is( $@, sprintf("You tried to plan twice at %s line %d.\n", $0, __LINE__ -1),
18 'disallow changing plan' );
33459055 19
20pass('Just testing plan()');
21pass('Testing it some more');