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