# from Ricardo SIGNES
# on Saturday 03 March 2007 07:11 pm:

>>   use inc::testplan(0,
>>     + 3   # use
>>     + 199 # those others
>>   );
>
>What is that ... for?

It's a substitute for 

  use Test::More (0 ? (no_plan) : (tests => 202));

... mostly because I don't like the number of parens in that.

The args are:

  use inc::testplan (<haveplan>, <numtests>);

where <haveplan> is the battle-mode switch which is quite handily 
flipped with vim's 'r0' or 'r1' idiom (or Ctrl+a/Ctrl+x if you prefer.)

In your case, you could:

  inc::testplan->import(1,
        3  +  @test_data * 3
  );

I didn't bother wrapping plan() or adding much other interface as it is 
currently just an experiment in planning.  Actually, if my test could 
figure out how many tests there will be so I got to watch that neato 
x/y progress output, I would never plan.

  http://svn.dotreader.com/svn/dotreader/trunk/inc/testplan.pm

--Eric
-- 
Entia non sunt multiplicanda praeter necessitatem.
--Occam's Razor
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to