Re: Test::More is_deeply failed data

2014-02-11 Thread Paul Johnson
On Tue, Feb 11, 2014 at 01:17:15PM -0500, shawn wilson wrote: > Is there a way to see the data difference when is_deeply fails? proove > -d doesn't give me the structure that fails. I end up 'print STDERR > "one " . Dumper($foo); print STDERR 'two " . Dumper($bar);' which just > doesn't seem like t

Re: Test::More is_deeply failed data

2014-02-11 Thread shawn wilson
Test::Differences looks like what I want. Also he documents gracefully falling back to is_deeply. I see no issue requiring it but the alternative is cool. On Feb 11, 2014 2:02 PM, "Shlomi Fish" wrote: > Hi Shawn, > > On Tue, 11 Feb 2014 13:17:15 -0500 > shawn wilson wrote: > > > Is there a way t

Re: Test::More is_deeply failed data

2014-02-11 Thread Shlomi Fish
Hi Shawn, On Tue, 11 Feb 2014 13:17:15 -0500 shawn wilson wrote: > Is there a way to see the data difference when is_deeply fails? proove > -d doesn't give me the structure that fails. I end up 'print STDERR > "one " . Dumper($foo); print STDERR 'two " . Dumper($bar);' which just > doesn't seem

Re: Test::More is_deeply failed data

2014-02-11 Thread John SJ Anderson
On Tue, Feb 11, 2014 at 10:17 AM, shawn wilson wrote: > Is there a way to see the data difference when is_deeply fails? So, with this code: #! perl use Test::More; my $a = { foo => {bar => { baz => 'bargle' }}}; my $b = { foo => {baz => { bar => 'bargle' }}}; is_deeply( $a , $b ); done_testi

Test::More is_deeply failed data

2014-02-11 Thread shawn wilson
Is there a way to see the data difference when is_deeply fails? proove -d doesn't give me the structure that fails. I end up 'print STDERR "one " . Dumper($foo); print STDERR 'two " . Dumper($bar);' which just doesn't seem like the right thing to do to figure out why a test is failing? -- To unsu