[Koha-bugs] [Bug 25513] acquisitions_orders.t is failing randomly
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 21 14:54:45 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25513
--- Comment #17 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Jonathan Druart from comment #14)
> buster has JSON=4.02
> stretch has JSON=2.90
>
> % more xxx.pl
> use Modern::Perl;
> use Mojo::JSON qw(decode_json encode_json);
> my $bytes = encode_json {foo => 9963405519357589504, bar =>
> 10177559957753600000};
> say $bytes;
>
> buster:
> % perl xxx.pl
> {"bar":10177559957753600000,"foo":9963405519357589504}
>
> stretch:
> % perl xxx.pl
> {"bar":10177559957753600000,"foo":9963405519357589504}
>
> I am missing something obvious...
Note that this was meaningless, we wanted to test:
use Mojo::JSON qw(decode_json encode_json);
my $bytes = encode_json {foo => 9963405519357589504.0000, bar =>
10177559957753600000.0000};
say $bytes;
Both return
{"bar":1.01775599577536e+19,"foo":9.96340551935759e+18}
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list