Subject: | Deploying Test::Differences with Test::More |
To use Test::Differences with Test::More, and to fallback to
Test::More's eq_or_diff if Test::Differences is not installed,
I use:
use Test::More;
BEGIN {
if (!eval q{ use Test::Differences; 1 }) {
*eq_or_diff = \&is_deeply;
}
}
Maybe these lines of code could also go into the "Deploying
Test::Differences" Pod section?
Regards,
Slaven