Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Test.pm] DRY in skip_rest
  • Loading branch information
Tadeusz Sośnierz committed Mar 5, 2011
1 parent 12dfa0d commit c463f55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Test.pm
Expand Up @@ -122,11 +122,7 @@ multi sub skip(Int $count, $reason) is export {
die "skip() was passed a non-numeric number of tests. Did you get the arguments backwards?"
}

multi sub skip_rest() is export {
skip('<unknown>', $num_of_tests_planned - $num_of_tests_run);
}

multi sub skip_rest($reason) is export {
sub skip_rest($reason = '<unknown>') is export {
skip($reason, $num_of_tests_planned - $num_of_tests_run);
}

Expand Down

0 comments on commit c463f55

Please sign in to comment.