Skip Menu |

This queue is for tickets about the Mojo-JSON-Any CPAN distribution.

Report information
The Basics
Id: 57794
Status: resolved
Priority: 0/
Queue: Mojo-JSON-Any

People
Owner: VTI [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: Mojo::JSON::XS::_Bool objects do not compare as strings
Test::More 0.95_02 changes how overloaded objects are tested. They are no longer stringified before comparing. Previously, is() would do "$have" eq "$want", now it does $have eq $want. This reveals string overloaded objects which do not compare as strings. The solution is to either set fallback => 1 in your overload or to implement cmp (also <=> since you implement numerification).
Thanks. Fixed in the latest release.