Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id: 37547
Status: resolved
Priority: 0/
Queue: Test-Simple

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

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



Subject: Test::More _eq_array,_eq_hash ! versus eq
Date: Wed, 09 Jul 2008 08:17:11 +1000
To: bug-test-simple [...] rt.cpan.org
From: Kevin Ryde <user42 [...] zip.com.au>
In Test/More.pm 0.80 I noticed in _eq_array() if( grep !_type($_) eq 'ARRAY', $a1, $a2 ) { which I think may be always false due to ! having higher precedence than eq. Similar in _eq_hash. As far as I can tell there's no active harm as it looks like $a1 and $a2 are already always arrayrefs at that point, for the public interface at least.
Nice catch.