Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 24297
Status: resolved
Left: 0 min
Priority: 0/0
Queue: Test-Differences

Owner: Nobody
Requestors: SREZIC <SREZIC [...] cpan.org>
Cc:
AdminCc:

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



X History Display mode: Brief headersFull headers
#   Wed Jan 10 04:50:56 2007 SREZIC - Ticket created  
Subject: Deploying Test::Differences with Test::More
[text/plain 354b]
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


#   Fri Aug 01 04:48:24 2008 OVID - Correspondence added  
[text/plain 101b]
The "*eq_or_diff = \&is_deeply" example has been added to the
documentation in 0.49_01.

Cheers,
Ovid
#   Fri Aug 01 04:48:27 2008 RT_System - Status changed from 'new' to 'open'  
#   Fri Aug 01 04:48:30 2008 OVID - Status changed from 'open' to 'resolved'