Skip to content

Commit

Permalink
simplify name fuzzer
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Apr 5, 2021
1 parent 85984d0 commit 59ce847
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions tests/PlayerTest.elm
Expand Up @@ -32,13 +32,9 @@ playerFuzzer =

nameFuzzer : Fuzzer String
nameFuzzer =
let
chars =
Fuzz.intRange (Char.toCode 'a') (Char.toCode 'c')
|> Fuzz.map Char.fromCode
in
Fuzz.map2 (::) chars (Fuzz.list chars)
|> Fuzz.map String.fromList
Fuzz.intRange (Char.toCode 'a') (Char.toCode 'c')
|> Fuzz.map Char.fromCode
|> Fuzz.map String.fromChar


decoderTest : Test
Expand Down

0 comments on commit 59ce847

Please sign in to comment.