Subject: | Make '' and undef not equal - Breaks testing for Capture::Tiny |
The attached patch fixes the problem with the Capture::Tiny tests whilst
still allowing T::D to pass it's own tests
Subject: | td.patch |
--- lib/Test/Differences.pm 2011-05-15 21:28:23.000000000 +0100
+++ lib/Test/Differences.pm 2011-05-15 21:29:13.000000000 +0100
@@ -362,6 +362,8 @@
my $type = shift;
local $_ = shift if @_;
+ ref or my $pbp_p114 = _quote_str( $_ );
+
return [ split /^/m, _quote_str($_) ] unless ref;
croak "Can't flatten $_" unless $type;