Created
September 9, 2016 07:08
-
-
Save zkessin/1ad4a1a972dbd95be64a83a2a728a36e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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