in reply to Re^5: How can I write Test::Finished? (auto count)
in thread How can I write Test::Finished?
is($loop_count, 10, "Loop ran 10 times");
That's a case of manual counting that makes sense to me, and it's close enough to the code it references to be easy to maintain. Plus, when it fails I know exactly which loop ran short. When you get a failure from a global count you don't have a clue as to where in the test file to look.
But I'm just guessing here. What problems are you suggesting?
-sam
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How can I write Test::Finished? ("ok" isn't)
by tye (Sage) on Jun 22, 2004 at 15:57 UTC |