summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/Builder/current_test_without_plan.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/Builder/current_test_without_plan.t')
-rw-r--r--cpan/Test-Simple/t/Builder/current_test_without_plan.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/Builder/current_test_without_plan.t b/cpan/Test-Simple/t/Builder/current_test_without_plan.t
new file mode 100644
index 0000000000..31f9589977
--- /dev/null
+++ b/cpan/Test-Simple/t/Builder/current_test_without_plan.t
@@ -0,0 +1,16 @@
+#!/usr/bin/perl -w
+
+# Test that current_test() will work without a declared plan.
+
+use Test::Builder;
+
+my $tb = Test::Builder->new;
+$tb->current_test(2);
+print <<'END';
+ok 1
+ok 2
+END
+
+$tb->ok(1, "Third test");
+
+$tb->done_testing(3);