Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fail subtest if incorrect number of tests done
  • Loading branch information
lizmat committed May 15, 2014
1 parent a0ba7f9 commit ea173d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Test.pm
Expand Up @@ -152,7 +152,8 @@ sub subtest(&subtests, $desc = '') is export {
$indents ~= " ";
subtests();
done() if !$done_testing_has_been_run;
my $status = $num_of_tests_failed == 0;
my $status =
$num_of_tests_failed == 0 && $num_of_tests_planned == $num_of_tests_run;
_pop_vars;
$indents = $indents.chop.chop.chop;
proclaim($status,$desc);
Expand Down

0 comments on commit ea173d0

Please sign in to comment.