Open lue-bird opened 2 years ago
elm-test thinks Ints are Floats with
elm-test
Int
Float
Infinity
-Infinity
((1 / 0) |> round) |> Expect.equal ((1 / 0) |> round)
Do not use Expect.equal with floats. Use Float.within instead.
elm-test doesn't complain on
NaN
n ^ -x
(This is a really niche issue which won't provide much use being addressed)
elm-test
thinksInt
s areFloat
s withInfinity
-Infinity
elm-test
doesn't complain onNaN
(which are always correctly reported as "expectation hasn't been met")n ^ -x
) (this is kinda surprising)