propeller icon indicating copy to clipboard operation
propeller copied to clipboard

`float-mult-spec` sporadically fails

Open NicMcPhee opened this issue 2 years ago • 0 comments

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.

NicMcPhee avatar Mar 04 '22 22:03 NicMcPhee