You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Fuzz module has Fuzz.list and Fuzz.array, but doesn't have Fuzz.set nor Fuzz.dict.
Currently, these are relatively easy to create in user code, but having to do this every time we need such a fuzzer is tedious.
I haven't tried them out but I believe these implementations would work (or be good starting positions if they don't).
set:Fuzzcomparable->Fuzz (Setcomparable)
set fuzzer =
list fuzzer
|> map Set.fromList
dict:Fuzzcomparable->Fuzza->Fuzz (Dictcomparablea)
dict keyFuzzer valueFuzzer =
list (Tuple.pair keyFuzzer valueFuzzer)|> map Dict.fromList
There is a risk of generating the same keys multiple times which is wasteful, and maybe there are better implementations. In the meantime, I think this would be a valuable addition to the package.
The text was updated successfully, but these errors were encountered:
The
Fuzz
module hasFuzz.list
andFuzz.array
, but doesn't haveFuzz.set
norFuzz.dict
.Currently, these are relatively easy to create in user code, but having to do this every time we need such a fuzzer is tedious.
I haven't tried them out but I believe these implementations would work (or be good starting positions if they don't).
There is a risk of generating the same keys multiple times which is wasteful, and maybe there are better implementations. In the meantime, I think this would be a valuable addition to the package.
The text was updated successfully, but these errors were encountered: