Skip to content
Permalink
Browse files

Clean up diagnostic output

For #1860
  • Loading branch information...
coke committed Jun 27, 2019
1 parent ea79571 commit a362fac5bbba2c3b0de0fe78a2c70bdbc2be3f37
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Test.pm6
@@ -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;

0 comments on commit a362fac

Please sign in to comment.
You can’t perform that action at this time.