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

SF#393 Tests may fail if perl is compiled with -Duselongdouble #129

Closed
zmughal opened this issue Jun 24, 2015 · 3 comments
Closed

SF#393 Tests may fail if perl is compiled with -Duselongdouble #129

zmughal opened this issue Jun 24, 2015 · 3 comments

Comments

@zmughal
Copy link
Member

zmughal commented Jun 24, 2015

From http://sourceforge.net/p/pdl/bugs/393/

The t/limits_trans_err.t test fails on a debian/wheezy system if perl is compiled with -Duselongdouble (checked with perl 5.20.1):

#   Failed test 'x symmetric trans'
#   at t/limits_trans_err.t line 30.
#     Structures begin differing at:
#          $got->[0] = '-0.301029995663981198'
#     $expected->[0] = '-0.301029995663981195'

#   Failed test 'x asymmetric trans'
#   at t/limits_trans_err.t line 35.
#     Structures begin differing at:
#          $got->[0] = '-0.301029995663981198'
#     $expected->[0] = '-0.301029995663981195'

#   Failed test 'illegal errbar lower bounds'
#   at t/limits_trans_err.t line 42.
#     Structures begin differing at:
#          $got->[0] = '-0.301029995663981198'
#     $expected->[0] = '-0.301029995663981195'
# Looks like you failed 3 tests of 3.
t/limits_trans_err.t ............

On a FreeBSD 10 system the test suite also fails if perl is compiled with -Duselongdouble, but a different test:

#   Failed test 'q[e] returns exp(1)'
#   at t/pdl_from_string.t line 301.
#          got: '2.71828182845904509'
#     expected: '2.71828182845904553'
# Got 2.71828182845904509

#   Failed test 'q[E] returns exp(1)'
#   at t/pdl_from_string.t line 304.
#          got: '2.71828182845904509'
#     expected: '2.71828182845904553'
# Got 2.71828182845904509
# Looks like you failed 2 tests of 113.
t/pdl_from_string.t .............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/113 subtests
        (less 1 skipped subtest: 110 okay)
        (3 TODO tests unexpectedly succeeded)

Regards,
Slaven

@mohawk2
Copy link
Member

mohawk2 commented Jul 5, 2015

This needs some "approx equals" attention.

@devel-chm
Copy link
Member

t/pdl_from_string.t has fails because it uses == rather than approx= to compare things like PI and E

@mohawk2
Copy link
Member

mohawk2 commented Apr 9, 2018

This was closed on SF 2016-10-08.

@mohawk2 mohawk2 closed this as completed Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants