|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Testing error handling that calls "die"by TomDLux (Vicar) |
| on Dec 26, 2011 at 19:59 UTC ( #945127=note: print w/ replies, xml ) | Need Help?? |
|
Ovid's 3-part article on Test::Class at the Modern Perl website taught me the basics of testing exceptions:
Don't forget the first arg to throws_ok is a code block or anon subroutine As Occam said: Entia non sunt multiplicanda praeter necessitatem.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||