propeller
propeller copied to clipboard
`float-mult-spec` sporadically fails
We've had a couple of cases where float-mult-spec
(part of the nifty new numerics tests by @julia-schor – thanks!) fails sporadically, such as this example:
FAIL in (float-mult-spec) (numeric_spec.clj:229)
expected: {:result true}
actual: {:shrunk {:total-nodes-visited 49, :depth 6, :pass? false, :result false, :result-data nil, :time-shrinking-ms 3, :smallest [128.0 9.5367431640625E-7]}, :failed-after-ms 4, :num-tests 43, :seed 1646433009522, :fail [-512.0 2.704362600525201E-7], :result false, :result-data nil, :failing-size 42, :pass? false, :test-var "float-mult-spec"}
It happens fairly rarely, and our guess is that the very small (10^-7) value is key to the problem.