This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[ANNOUNCE] Test::Simple 0.47
[perl5.git] / lib / Test / Simple / t / plan.t
CommitLineData
60ffb308
MS
1#!/usr/bin/perl -w
2
33459055 3BEGIN {
a9153838
MS
4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = '../lib';
7 }
33459055
MS
8}
9
10use Test::More;
11
a344be10
MS
12plan tests => 4;
13eval { plan tests => 4 };
14like( $@, '/^You tried to plan twice!/', 'disallow double plan' );
15eval { plan 'no_plan' };
16like( $@, '/^You tried to plan twice!/', 'disallow chaning plan' );
33459055
MS
17
18pass('Just testing plan()');
19pass('Testing it some more');