Perl 6 and Test.pm's skip() function
Ovid
publiustemp-perlqa3 at yahoo.com
Wed Jan 21 22:13:38 GMT 2009
----- Original Message ----
> From: chromatic <chromatic at wgz.org>
> *Every* time I use skip() in Perl 5, I have to remember the rule that the
> *description* comes first, and the the test number. I only fail to make this
> mistake if I've already made it within the past five minutes.
Agreed. I'm bitten by this a lot myself. Now that I think about it, the only reason we have this:
multisub skip(Str $reason);
... is because we want a default value of 1 for the number of tests to skip. Eliminate that default and the entire problem goes away. You must *always* specify the number of tests to skip. $reason is optional.
Sound good?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
More information about the tapx-dev
mailing list