Skip Menu |

This queue is for tickets about the RPerl CPAN distribution.

Report information
The Basics
Id: 105781
Status: resolved
Priority: 0/
Queue: RPerl

People
Owner: WBRASWELL [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.000005
Fixed in: 1.000007



Subject: Tests fail with -Duselongdouble
If perl is compiled with -Duselongdouble, then a number of tests are failing, probably due to floating point inaccuracies. I observed this with perl 5.20.1 on a linux and freebsd system. Failures look like this: # Failed test 'TNV08 number_to_string(3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679) returns correct value' # at t/04_type_scalar.t line 324. # got: '3.141_592_653_589_793_24' # expected: '3.141_592_653_589_79' # Failed test 'TNV09 number_to_string(1_234_567.890_123_456) returns correct value' # at t/04_type_scalar.t line 333. # got: '1_234_567.890_123_456' # expected: '1_234_567.890_123_46' # Failed test 'TNV34 number__typetest1(-17.3) returns correct value' # at t/04_type_scalar.t line 409. # got: '-32.6000000000000014' # expected: '-32.6' # Looks like you failed 3 tests of 319. t/04_type_scalar.t ............. (and more)
On 2015-07-09 15:20:38, SREZIC wrote: Show quoted text
> If perl is compiled with -Duselongdouble, then a number of tests are > failing, probably due to floating point inaccuracies. I observed this > with perl 5.20.1 on a linux and freebsd system. > > Failures look like this: > > # Failed test 'TNV08 > number_to_string(3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679) > returns correct value' > # at t/04_type_scalar.t line 324. > # got: '3.141_592_653_589_793_24' > # expected: '3.141_592_653_589_79' > > # Failed test 'TNV09 number_to_string(1_234_567.890_123_456) returns > correct value' > # at t/04_type_scalar.t line 333. > # got: '1_234_567.890_123_456' > # expected: '1_234_567.890_123_46' > > # Failed test 'TNV34 number__typetest1(-17.3) returns correct value' > # at t/04_type_scalar.t line 409. > # got: '-32.6000000000000014' > # expected: '-32.6' > # Looks like you failed 3 tests of 319. > t/04_type_scalar.t ............. > (and more)
I think this issue is resolved now...