Skip to content

Instantly share code, notes, and snippets.

@zkessin
Created September 9, 2016 07:08
Show Gist options
  • Save zkessin/1ad4a1a972dbd95be64a83a2a728a36e to your computer and use it in GitHub Desktop.
Save zkessin/1ad4a1a972dbd95be64a83a2a728a36e to your computer and use it in GitHub Desktop.
module Tests exposing (..)
import Test exposing (..)
import Expect
import String
import Fuzz exposing (..)
all : Test
all =
describe "Pair Fuzzer"
[
fuzz pairFuzzer "Pair Fuzzer"<|
\(a,b) ->
let
_ = Debug.log "State " (a,b)
in
Expect.lessThan a b
]
pairFuzzer: Fuzzer (Int,Int)
pairFuzzer =
let
makePair : Int -> Fuzzer (Int, Int)
makePair a =
tuple(constant <| Debug.log "A" a
, intRange a (a + 500))
in
andThen makePair<| intRange -500 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment