Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t/misc.t fails with -Duselongdouble #1

Closed
eserte opened this issue Mar 4, 2021 · 0 comments
Closed

t/misc.t fails with -Duselongdouble #1

eserte opened this issue Mar 4, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@eserte
Copy link

eserte commented Mar 4, 2021

If perl is compiled with increased floating point accuracy (i.e. with the configuration option -Duselongdouble) then the test suite fails:

#   Failed test 'v array'
#   at t/misc.t line 31.
#     Structures begin differing at:
#          $got->[0] = '12.3000000000000007'
#     $expected->[0] = '12.3'

    #   Failed test 'x'
    #   at t/misc.t line 37.
    #          got: '12.3000000000000007'
    #     expected: '12.3'

    #   Failed test 'z'
    #   at t/misc.t line 39.
    #          got: '56.7000000000000028'
    #     expected: '56.7'

    #   Failed test 't'
    #   at t/misc.t line 40.
    #          got: '-78.9000000000000057'
    #     expected: '-78.9'
    # Looks like you failed 3 tests of 4.
... etc ...
#   Failed test 'PJ_UV'
#   at t/misc.t line 121.

    #   Failed test 'lam'
    #   at t/misc.t line 126.
    #          got: '12.3000000000000007'
    #     expected: '12.3'
    # Looks like you failed 1 test of 2.

#   Failed test 'PJ_LP'
#   at t/misc.t line 128.
# Looks like you failed 13 tests of 28.
t/misc.t ........ 
Dubious, test returned 13 (wstat 3328, 0xd00)
Failed 13/28 subtests 
@johannessen johannessen added the bug Something isn't working label Mar 4, 2021
@johannessen johannessen self-assigned this Mar 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants