Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: too much testing?

by rvosa (Curate)
on Sep 30, 2005 at 19:29 UTC ( #496496=note: print w/replies, xml ) Need Help??


in reply to too much testing?

I'm not sure if I understand this correctly, but couldn't you do:
ok(! $foo->getDetails( PARAM_ONE => 1234 ), 'missing parameter');

Replies are listed 'Best First'.
Re^2: too much testing?
by geektron (Curate) on Sep 30, 2005 at 20:17 UTC
    because the module being tested  croaks when parameters are missing, that doens't catch the intended failure condition.

    the eval is the closest without trying Test::Exception.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496496]
help
Chatterbox?
[choroba]: When working at a bank, we had a colleague who entered mining early enough to have lots of bitcoins. He used to say "I go to work just because I'm too bored at home."
[Corion]: choroba: Aah, no, I do it because of the money :)
[choroba]: And when asked "How are you?" in the morning, his reply was usually "I don't know, haven't checked the bitcoin rates yet."
[Corion]: Heh - if I defined myself through the money I make, I would now only be 80% myself :-D
[choroba]: :-D
LanX emacs is the oldest textadventure ...
LanX ... just (re)discovered "ielm" a built-in REPL without the bash emulation of "eshell" ... soooooo handy

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-09-21 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (249 votes). Check out past polls.

    Notices?