Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Test::More usage to test functions that die

by tomhukins (Curate)
on Dec 08, 2004 at 14:23 UTC ( #413203=note: print w/ replies, xml ) Need Help??


in reply to Test::More usage to test functions that die

It's not part of Test::More itself, but Test::Exception's dies_ok method should help:

dies_ok { $a->f1 } 'passing no arguments to f1 dies';

For more information about the different testing modules available, see the Testing Modules section of Perl Quality Assurance Projects.


Comment on Re: Test::More usage to test functions that die
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://413203]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2014-09-19 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (129 votes), past polls