Skip Menu |

This queue is for tickets about the Math-Utils-XS CPAN distribution.

Report information
The Basics
Id: 125109
Status: open
Priority: 0/
Queue: Math-Utils-XS

People
Owner: Nobody in particular
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.000004
Fixed in: (no value)



Subject: Fails on nvsize 16
http://www.cpantesters.org/cpan/report/94298743 Diagnostics: # Failed test 'sum of [10000,3.14159,2.71828] (arrayref) adds up to 10005.85987' # at t/00_fsum.t line 26. # got: '10005.8598700000002' # expected: '10005.85987' # Looks like you failed 1 test of 10. Nvsize varies with architecture and the parameter -Duselongdouble. A rule of thumb on this kind of test failures is to compare floating point numbers only with some epsilon. A convenient module to do so is Test::Number::Delta. HTH && Thanks,
Subject: Re: [rt.cpan.org #125109] Fails on nvsize 16
Date: Wed, 18 Apr 2018 11:30:56 +0200
To: bug-Math-Utils-XS [...] rt.cpan.org
From: Gonzalo Diethelm <gonzalo.diethelm [...] gmail.com>
Yeah, already fixed. Thanks. On Wed, Apr 18, 2018 at 9:53 AM, Andreas Koenig via RT < bug-Math-Utils-XS@rt.cpan.org> wrote: Show quoted text
> Wed Apr 18 03:53:05 2018: Request 125109 was acted upon. > Transaction: Ticket created by ANDK > Queue: Math-Utils-XS > Subject: Fails on nvsize 16 > Broken in: 0.000004 > Severity: (no value) > Owner: Nobody > Requestors: ANDK@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=125109 > > > > http://www.cpantesters.org/cpan/report/94298743 > > Diagnostics: > > # Failed test 'sum of [10000,3.14159,2.71828] (arrayref) adds up to > 10005.85987' > # at t/00_fsum.t line 26. > # got: '10005.8598700000002' > # expected: '10005.85987' > # Looks like you failed 1 test of 10. > > Nvsize varies with architecture and the parameter -Duselongdouble. A rule > of thumb on this kind of test failures is to compare floating point numbers > only with some epsilon. A convenient module to do so is > Test::Number::Delta. > > HTH && Thanks, >
-- Gonzalo Diethelm gonzalo.diethelm@gmail.com