use Test::More;
use Test::Differences;
is_deeply($actual, $expected, 'foo') or eq_or_diff($actual, $expected, 'oof');
or
is_deeply($actual, $expected, 'foo') or diag explain $actual;
A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.
Jump to
Perl Tests: Better output when comparison fails
Labels:
comparisons,
complex-data-structures,
perl,
testing