perl6 / Pugs.hs

(ARCHIVE) Raku User's Golfing System in Haskell
84 stars 17 forks source link

skip()'s arguments are reversed #1

Closed coke closed 12 years ago

coke commented 12 years ago

When fudging a spec test, a block like:

#?pugs skip "todo"
{
 is(...);
 ok(...);
 is(...);
 ok(...);
}

is translated to skip("todo", 4);

But Pugs's skip function has a signature of:

multi sub skip (Int $count, Str $reason, :$depends) returns Bool is export {
coke commented 12 years ago

Workaround in the meantime is to write that skip as:

{
 #?pugs skip "todo"
 is(...);
 #?pugs skip "todo"
 ok(...);
 #?pugs skip "todo"
 is(...);
 #?pugs skip "todo"
 ok(...);
}
coke commented 12 years ago

moritz++ fixed this with f3ef7f042fa058937627f352abd1241b4b4fc72c