Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-Differences CPAN distribution.

Report information
The Basics
Id: 24297
Status: resolved
Priority: 0/
Queue: Test-Differences

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.47
Fixed in: (no value)



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
The "*eq_or_diff = \&is_deeply" example has been added to the documentation in 0.49_01. Cheers, Ovid