go ahead... be a heretic | |
PerlMonks |
Re: Test scalar refs (not values) in deeply nested structureby syphilis (Archbishop) |
on Jul 24, 2020 at 03:51 UTC ( [id://11119732]=note: print w/replies, xml ) | Need Help?? |
Hi Rolf, So ... you have: and you want a test that will report that \$pos1 and \$pos2 are "different". I think a simple cmp_ok(\$pos1, 'eq', \$pos2, "should fail"); will fail. The bit I haven't quite grasped is the circumstances under which \$pos1 and \$pos2 should be considered the same. What values do you assign to $pos1 and $pos2 such that this test should report that \$pos1 and \$pos2 are "the same" ? Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|