elm-explorations / elm-explorations/test
Maximum call stack size exceeded with Test.fuzz2
- Dominant language
- Elm
- Stars
- 244
- Forks
- 40
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 2
Description
SSCCE:
```elm
module Example exposing (suite)
import Expect
import Fuzz
import Test exposing (..)
suite : Test
suite =
fuzz2 Fuzz.float (Fuzz.floatRange -1.0e100 1.0e100) "should not run out of stack" <|
\a b ->
Expect.fail "always fail"
```
## Expected
Test to fail
## Actual
```
elm-test 0.19.0-beta8
---------------------
Running 1 test. To reproduce these results, run: elm-test --fuzz 100 --seed 48737553166794
↓ Example
✗ should not run out of stack
This test failed because it threw an exception: "RangeError: Maximum call stack size exceeded"
```
## Notes
- This only occurs when a test fails.
- Changing `floatRange` to `float` fixes this.
- Possibly related #22
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.