Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by herveus (Prior)
on Dec 08, 2004 at 11:44 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 00:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found