Perl Monk, Perl Meditation | |
PerlMonks |
Re: 'either or' value unit test case in Test::Simple or Test::Moreby grinder (Bishop) |
on Jan 05, 2007 at 16:23 UTC ( [id://593149]=note: print w/replies, xml ) | Need Help?? |
I would write that as separate pass calls, which allows you to see which one matched.
Be careful here and don't go too tricky in the code flow, otherwise you may end up with a pass() in one branch, and nothing in the other, which will lead to strange off-by-one errors in the test plan. KISS. • another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|