|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^2: Test::Exception extension with (evil?) overloadingby adrianh (Chancellor) |
| on Jan 18, 2003 at 18:51 UTC ( #228026=note: print w/ replies, xml ) | Need Help?? |
|
Good option. Only downside is that you lose the prototyping of the test functions, and the calling syntax is a little more complex (in my opinion). You would also need to have it as:
(we can only prototype the sub away if the coderef is the first argument) One other problem would be in figuring out the test name to output when an exception is thrown. Since it's optional for test subs it may, or may not, be the last argument.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||