diff options
Diffstat (limited to 'cpan/Test-Simple/t/Legacy/check_tests.t')
-rw-r--r-- | cpan/Test-Simple/t/Legacy/check_tests.t | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/cpan/Test-Simple/t/Legacy/check_tests.t b/cpan/Test-Simple/t/Legacy/check_tests.t index ec88e2d48c..12a80c639d 100644 --- a/cpan/Test-Simple/t/Legacy/check_tests.t +++ b/cpan/Test-Simple/t/Legacy/check_tests.t @@ -5,7 +5,7 @@ use Test::Tester; use Data::Dumper qw(Dumper); my $test = Test::Builder->new; -$test->plan(tests => 105); +$test->plan(tests => 139); my $cap; @@ -95,6 +95,34 @@ my @tests = ( depth => 0, }, ], + [ + 'pass diag qr', + '$cap->ok(1, "pass diag qr"); + $cap->diag("pass diag qr");', + { + name => "pass diag qr", + ok => 1, + actual_ok => 1, + reason => "", + type => "", + diag => qr/pass diag qr/, + depth => 0, + }, + ], + [ + 'fail diag qr', + '$cap->ok(0, "fail diag qr"); + $cap->diag("fail diag qr");', + { + name => "fail diag qr", + ok => 0, + actual_ok => 0, + reason => "", + type => "", + diag => qr/fail diag qr/, + depth => 0, + }, + ], ); my $big_code = ""; |