summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/Tester/tbt_08subtest.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/Tester/tbt_08subtest.t')
-rw-r--r--cpan/Test-Simple/t/Tester/tbt_08subtest.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/Tester/tbt_08subtest.t b/cpan/Test-Simple/t/Tester/tbt_08subtest.t
new file mode 100644
index 0000000000..6ec508f247
--- /dev/null
+++ b/cpan/Test-Simple/t/Tester/tbt_08subtest.t
@@ -0,0 +1,16 @@
+#!/usr/bin/env perl
+
+use strict;
+use warnings;
+
+use Test::Builder::Tester tests => 1;
+use Test::More;
+
+subtest 'foo' => sub {
+ plan tests => 1;
+
+ test_out("not ok 1 - foo");
+ test_fail(+1);
+ fail("foo");
+ test_test("fail works");
+};