There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Depending on what semantics you intend, this simple case seems to be adequately covered by either: is eval { $o->answer }, 42, 'answer returned 42'; or
The former treats the exception and is as a single test, the latter as two separate ones. I looked at your Test::Exception and don't see any other tests that make sense to combine with a Test::More test. So I'd say what you should do is document these memes in your POD rather than writing any code. Makeshifts last the longest. In reply to Re: Test::Exception extension with (evil?) overloading
by Aristotle
|
|