Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Test::Exception extension with (evil?) overloading

by Aristotle (Chancellor)
on Jan 18, 2003 at 17:52 UTC ( #228006=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Test::Exception extension with (evil?) overloading
in thread Test::Exception extension with (evil?) overloading

Then what was the following code you posted supposed to do anyway?

my $result = lives_ok {$o->answer} 'answer worked'; is $result, 42, 'answer returned 42';
Because the second snippet I posted behaves exactly like that.

Makeshifts last the longest.


Comment on Re^3: Test::Exception extension with (evil?) overloading
Download Code
Re^4: Test::Exception extension with (evil?) overloading
by adrianh (Chancellor) on Jan 18, 2003 at 17:55 UTC
    Then what was the following code you posted supposed to do anyway?

    I guess it was intended to prove what an idiot I am when I don't run my code examples. Excuse me while I go bang my head against the wall (and then fix the example :-).

    <bang, bang, bang ... >

    Ah, that's better. Example should read:

    my $result; lives_ok {$result = $o->answer} 'answer worked'; is $result, 42, 'answer returned 42';

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-04 13:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls