Subject: | t/011_pc_expo.t fails with long doubles |
Date: | Fri, 22 Feb 2019 13:07:54 +0000 |
To: | bug-JSON-PP [...] rt.cpan.org |
From: | Dave Mitchell <davem [...] iabyn.com> |
On bleadperl built with -Duselongdouble or -Dquadmath, the JSON::PP test
script t/011_pc_expo.t fails test 8 because it expects the equivalent of
this stringification
my $n = 1.01e+30;
my $s = "$n"
to yield "1.01e+30" or "1.01e+030", whereas under -Dquadmath at least,
it's yielding "1010000000000000000000000000000".
I don't think that's a fault with perl's stringification (although I
couldn't find any perl docs which explain what promises, if any, we make
when stringifying a float), so I assume either the test needs updating or
JSON::PP needs fixing depending on what it's supposed to yield for a
floating value.
--
The Enterprise is captured by a vastly superior alien intelligence which
does not put them on trial.
-- Things That Never Happen in "Star Trek" #10