elm-explorations / test

Write unit and fuzz tests for Elm code.
https://package.elm-lang.org/packages/elm-explorations/test/latest
BSD 3-Clause "New" or "Revised" License
236 stars 40 forks source link

NaN matching causes issues #217

Open gampleman opened 1 year ago

gampleman commented 1 year ago

NaN strikes again:

Given [NaN]

    Two lists were unequal previously, yet ended up equal later.This should never happen!Please report this bug to https://github.com/elm-community/elm-test/issues - and include these lists:
    NaN
    NaN
nan =
    0 / 0

test1 =
    Test.test "NaN" <|
        \_ ->
            Expect.equalLists [ nan ] [ nan ]

See #216 for some ideas how to fix.