Subject: | Formatting error of exponent part on Win32 host -- superfluous leading "0" |
On a Win32 host, when JSONified floating-point values are represented in scientific notation, the exponent part can have a superfluous leading "0".
I do not have access to a Win32 testing environment myself, so I am unable to attempt reproduction; the formatting error was observed in a Win32 CPANtesters report:
https://www.cpantesters.org/cpan/report/5e1628dc-6bf3-1014-8976-93ea4c2286d7
.. archived here:
http://ciar.org/h/1cae9e.html
The report indicates JSON::PP version 2.27203.
Details as manifested in failed unit test:
# Failed test 'default parameters'
# at t/03-init-parameters.t line 11.
# got: '[["k",2.5,1e-007],["a",0.5,1e-007],["b",0.5,1e-007],["c",0.5,1e-007]]'
# expected: '[["k",2.5,1e-07],["a",0.5,1e-07],["b",0.5,1e-07],["c",0.5,1e-07]]'
On a tangental note, I will be re-implementing these tests to use is_deeply instead of comparing JSON strings.