Skip to content

Instantly share code, notes, and snippets.

@dustinfarris
Created September 28, 2017 23:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dustinfarris/bc9c3dea64fcca7ec64a1b84a240c084 to your computer and use it in GitHub Desktop.
Save dustinfarris/bc9c3dea64fcca7ec64a1b84a240c084 to your computer and use it in GitHub Desktop.
import Fuzz exposing (Fuzzer)
import Json.Encode as Json
jsonInt : Fuzzer ( Int, Json.Value )
jsonInt =
Fuzz.map
(\i -> ( i, Json.int i ))
Fuzz.int
jsonString : Fuzzer ( String, Json.Value )
jsonString =
Fuzz.map
(\s -> ( s, Json.string s ))
Fuzz.string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment