----- Original Message ----

> From: Eric Wilhelm <scratchcomput...@gmail.com>

> Passing a number of tests to skip() is an untested failure waiting to 
> happen.
> 
> Perhaps it is still no easy task to count the tests in a block, but 
> making humans count them is just asking for errors.

We already have 'plan tests => 33'.  People count tests all the time.  It's a 
fact of life.  If the programmer gets the skip count wrong and they have a 
plan, the tests will fail.  If they have a plan and the programmer omits the 
skip count, how can we possibly know how many tests to skip in order to match 
the plan?

The programmer still has to count if the programmer wants a plan.


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

Reply via email to