Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Using Data::Dumper in Test-Driven Development

by guha (Priest)
on Aug 05, 2004 at 08:50 UTC ( #380214=note: print w/replies, xml ) Need Help??


in reply to Using Data::Dumper in Test-Driven Development

I usually do

ok( $thing->model, $model ) or diag Dumper $thing;
which outputs to STDERR and saves one keystroke ;-)

This way you are guaranteed that your output won't interfere with the tests, even though I'm pretty certain that the Dumper output will not interfere.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://380214]
help
Chatterbox?
[Corion]: But he doesn't want to listen or does he not understand why/where it's impossible to get from the input to the output?
[Corion]: (or both?)
[marto]: "My solution is I just donít use these tools anymore".
[ambrus]: Corion: Maybe I'm not explaining the situation clearly enough, maybe I'm just wrong and he's right and we can compute that data,
[ambrus]: but hopefully he just wants to think it through himself his way and understand why it's impossible rather than blindly accept my argument.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-12-12 13:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (332 votes). Check out past polls.

    Notices?