Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CPAN-PR challenge january: fix bug RT#90319 #22
This PR fixes the RT#90319:encoding then decoding [Math::BigInt->new("0")] were giving ["0"] instead of .
This is because at some point a test was being done using || instead of defineness. "0" would be dejsonified into 0, which is correct, that is, defined, but false nevertheless.
I replaced the || by defined(), and added a test. The whole testsuite works and the bug seems fixed. Let me know if you need anything else.