Perl: the Markov chain saw | |
PerlMonks |
Re: 'either or' value unit test case in Test::Simple or Test::Moreby Tanktalus (Canon) |
on Jan 05, 2007 at 15:42 UTC ( [id://593134]=note: print w/replies, xml ) | Need Help?? |
Here's one that works in theory, but, in practice, doesn't. (I wonder if the Test::Builder owner would want to fix this ... probably not.) The idea is that you should be able to do this comparison ... but Test::Builder::_unoverload_str is used to convert the object that any returns into a string ... and that kills all the magic.
In Section
Seekers of Perl Wisdom
|
|