# from brian d foy
# on Sunday 04 March 2007 10:02 am:

>I run into problems where a loop runs fewer iterations than it should
>but the test script otherwise runs to completion normally.

I typically treat that as a test case.

  my $counter = 0;
  for(things(@foos)) {
    ok($_);
    $counter++;
  }
  is($counter, scalar(@foo), 'enough things');

I suppose a run-time goal adjustment and/or a for_ok([EMAIL PROTECTED], $sub) 
would 
be useful there?

I guess what I'm getting at is a goal-based plan.  Aside from the (and I 
do love to watch it spin) pretty progress output, the only real need 
for a plan is to make sure that every test ran.  I think that can 
easily be done at run-time, which would make my life easier.

--Eric
-- 
I arise in the morning torn between a desire to improve the world and a
desire to enjoy the world. This makes it hard to plan the day.
--E.B. White
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to