Move Test::Simple from lib to ext.
[p5sagit/p5-mst-13.2.git] / ext / Test-Simple / t / plan_is_noplan.t
CommitLineData
3e887aae 1#!/usr/bin/perl -w
2
33459055 3BEGIN {
a9153838 4 if( $ENV{PERL_CORE} ) {
5 chdir 't';
6 @INC = ('../lib', 'lib');
7 }
8 else {
9 unshift @INC, 't/lib';
10 }
33459055 11}
12
3e887aae 13use strict;
4dd974da 14
3e887aae 15use Test::More tests => 1;
4dd974da 16
3e887aae 17use Test::Builder::NoOutput;
4dd974da 18
3e887aae 19{
20 my $tb = Test::Builder::NoOutput->create;
4dd974da 21
3e887aae 22 $tb->plan('no_plan');
4dd974da 23
3e887aae 24 $tb->ok(1, 'foo');
25 $tb->_ending;
4dd974da 26
3e887aae 27 is($tb->read, <<OUT);
4dd974da 28ok 1 - foo
291..1
30OUT
4dd974da 31}
3e887aae 32