Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: 'either or' value unit test case in Test::Simple or Test::More

by grinder (Bishop)
on Jan 05, 2007 at 16:49 UTC ( [id://593160]=note: print w/replies, xml ) Need Help??


in reply to Re^2: 'either or' value unit test case in Test::Simple or Test::More
in thread 'either or' value unit test case in Test::Simple or Test::More

If $list winds up with duplicate values that match $val, your plan is in big trouble. I would change that to

for (@$list) { if ($val eq $_) { pass($test_name); return; } } diag "never saw [$val] in [@$list]"; fail($test_name);

• another intruder with the mooring in the heart of the Perl

  • Comment on Re^3: 'either or' value unit test case in Test::Simple or Test::More
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://593160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2024-04-19 16:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found