Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
[Test.pm] replace complicated, non-working multis with a short, simpl…
Browse files Browse the repository at this point in the history
…e, do-it-all only sub
  • Loading branch information
moritz committed Feb 23, 2012
1 parent 47cc4a9 commit f3ef7f0
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Pugs/ext/Test/lib/Test.pm
Expand Up @@ -249,18 +249,9 @@ sub todo (Str $reason = "fix", *%deadline) returns Bool is export {
return False;
}

multi sub skip (Str $reason?, :$depends) returns Bool is export {
Test::proclaim(1, "", "skip $reason", :$depends);
}

multi sub skip (Str $reason, Int $count, :$depends) returns Bool is export {
sub skip (Str $reason = '', Int $count = 1, :$depends) returns Bool is export {
for (1 .. $count) {
# Hack -- PIL2JS doesn't support multisubs correctly yet
if $*OS eq "browser" {
Test::proclaim(1, "", "skip $reason", :$depends);
} else {
Test::skip $reason, :$depends;
}
Test::proclaim(1, "", "skip $reason", :$depends);
}
}

Expand Down

0 comments on commit f3ef7f0

Please sign in to comment.