Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by herveus (Parson)
on Dec 08, 2004 at 11:44 UTC ( #413163=note: print w/replies, xml ) Need Help??


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

Howdy!

eval sets $@ if the code dies, so something like

ok($@, "no args passed");
will directly test that condition.

yours,
Michael

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2022-01-29 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?