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)