summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/plan_is_noplan.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/plan_is_noplan.t')
-rw-r--r--cpan/Test-Simple/t/plan_is_noplan.t32
1 files changed, 32 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/plan_is_noplan.t b/cpan/Test-Simple/t/plan_is_noplan.t
new file mode 100644
index 0000000000..1e696042ef
--- /dev/null
+++ b/cpan/Test-Simple/t/plan_is_noplan.t
@@ -0,0 +1,32 @@
+#!/usr/bin/perl -w
+
+BEGIN {
+ if( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ('../lib', 'lib');
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
+use strict;
+
+use Test::More tests => 1;
+
+use Test::Builder::NoOutput;
+
+{
+ my $tb = Test::Builder::NoOutput->create;
+
+ $tb->plan('no_plan');
+
+ $tb->ok(1, 'foo');
+ $tb->_ending;
+
+ is($tb->read, <<OUT);
+ok 1 - foo
+1..1
+OUT
+}
+