Skip to content

Commit

Permalink
Merge pull request #3024 from rakudo/feature-1860
Browse files Browse the repository at this point in the history
Clean up diagnostic output
  • Loading branch information
lizmat committed Jun 27, 2019
2 parents ea79571 + a362fac commit fd492d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Test.pm6
Expand Up @@ -754,12 +754,12 @@ sub done-testing() is export {
}

# Wrong quantity of tests
_diag("Looks like you planned $num_of_tests_planned test"
_diag("You planned $num_of_tests_planned test"
~ ($num_of_tests_planned == 1 ?? '' !! 's')
~ ", but ran $num_of_tests_run"
) if ($num_of_tests_planned or $num_of_tests_run) && ($num_of_tests_planned != $num_of_tests_run);

_diag("Looks like you failed $num_of_tests_failed test"
_diag("You failed $num_of_tests_failed test"
~ ($num_of_tests_failed == 1 ?? '' !! 's')
~ " of $num_of_tests_run"
) if $num_of_tests_failed && ! $subtest_todo_reason;
Expand Down

0 comments on commit fd492d2

Please sign in to comment.