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
In reply to Re^3: 'either or' value unit test case in Test::Simple or Test::More
by grinder
in thread 'either or' value unit test case in Test::Simple or Test::More
by palette
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |