Fuzz.Table allows you to run fuzzers with known edge-cases. It'll run a fuzzer just like normal, but in addition, you can give it a list of inputs to try first.
Next time you have a test that only fails once in a blue moon, like this one:
fuzz int "input is not equal to 11147" <|
\a -> a |> Expect.notEqual 11147you can replace it with a fuzzTable and add that edge case, so that elm-test will try that edge case on each test run from now on:
fuzzTable int "input is not equal to 11147" [ 11147 ] <|
\a -> a |> Expect.notEqual 11147Then that particular bug will never make it through your tests again!
#FuzzTable
Run a 2-fuzzer just like normal, but first run a supplied list of edge cases.
Run a 3-fuzzer just like normal, but first run a supplied list of edge cases.
Run a fuzzer just like normal, but first run a supplied list of edge cases.