diagrams / diagrams-lib

Diagrams standard library
https://diagrams.github.io/
Other
138 stars 62 forks source link

diagrams-lib-1.4.0.1 test suite failure #288

Closed peti closed 7 years ago

peti commented 7 years ago

Citing from http://hydra.nixos.org/build/49691788/nixlog/1/raw:

    shear:                                                                                  FAIL
      *** Failed! Falsifiable (after 2 tests and 5 shrinks): 
      9.198430964966695e-2
      0.0
      0.0
      0.6437505041025977
      Use --quickcheck-replay '1 TFGenR 00000414AD2C5BED0000000007735940000000000000E1D60000002D2B4D1400 0 51539607552 36 0' to reproduce.
    (1,0) rotateTo some dir will return normalised dir:                                     OK
      +++ OK, passed 100 tests.
    rotates:                                                                                FAIL
      *** Failed! Falsifiable (after 2 tests and 1 shrink): 
      1.9831873386198648
      V2 3.386116551210039 0.0
      Use --quickcheck-replay '1 TFGenR 00000414AD2C5BED0000000007735940000000000000E1D60000002D2B4D1400 0 206158430208 38 0' to reproduce.

It appears like those tests fail only on i686 builds, i.e. when compiling for 32 bit Linux, but I am not entirely sure that's the case.

byorgey commented 7 years ago

Ugh, it looks like those tests are using == on Double values! To be honest I'm not sure how they have ever worked.