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
237 stars 39 forks source link

Fuzz.forcedChoice: don't reject unexpected values? #222

Open Janiczek opened 1 year ago

Janiczek commented 1 year ago

@CoderDennis has found this when reading through the source code.

Fuzz.forcedChoice doesn't reject the value in the original Python minithesis repo but it does in our implementation (when using a Hardcoded RandomRun).

This probably results in more failed generations during shrinking than necessary. We likely should just ignore the current value instead of checking its value.