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

Re: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!

by adrianh (Chancellor)
on Jul 20, 2005 at 11:05 UTC ( #476462=note: print w/replies, xml ) Need Help??


in reply to Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!

Well then, how about using Test::More::is_deeply() sometimes, instead?

It's often useful, but you do have to bear in mind that it only looks at the basic structure of the objects, and ignores many things, e.g.:

is_deeply( {}, bless({}, 'Foo'), 'is_deeply ignores blessed' );

will pass. Test::Deep is a useful module if you're interested in some of the detail.

  • Comment on Re: Does Data::Dumper give you eye strain? Use Test::More::is_deeply() for debugging!
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2019-08-26 07:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?