elm-explorations / elm-explorations/test

NaN matching causes issues

Open
#217 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
244
Forks
40
Avg merge
1d 23h
Merged PRs (30d)
2

Description

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
```

```elm
nan =
0 / 0

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

```

See #216 for some ideas how to fix.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.