Hi Shawn, On Tue, 11 Feb 2014 13:17:15 -0500 shawn wilson <ag4ve...@gmail.com> 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 the right thing to do to figure out why a test is > failing? > Perhaps you want to use eq_or_diff() from https://metacpan.org/pod/Test::Differences , which does that. It's not a core module but is much better, and eq_or_diff() is used almost exactly the same as is_deeply() is but with better output. I have a small wrapper for eq_or_diff() in one of my CPAN modules that falls back to is_deeply in one of my CPAN distros but I don't remember where. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/ Buffy Summers does not really need stakes to slay vampires, because her kisses are deadly for them. And that includes those that she blows in the air. — http://www.shlomifish.org/humour/bits/facts/Buffy/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/