Michael Peters <[EMAIL PROTECTED]> wrote:
> > If the calculated result used in the
> > 'plan' at the end does not match the number of tests actually run, then you
> > know you've got a problem with your test code.
> > </stating the obvious>
> 
> So this gives you protection against not being able to count?

        Exactly. :-) Take a look at, for instance, IPC::Run's test cases...
an array of sub{} blocks, some of which get skipped over on certain OS'es.
It'd be really easy to accidentally put to ok()'s in one sub{} block and
screw up the count.

                - Tyler

Reply via email to