mirror of
https://github.com/grin-compiler/grin.git
synced 2024-09-11 15:37:54 +03:00
Test: stress test combinator.
This commit is contained in:
parent
a003de4860
commit
b1c60cf859
@ -61,7 +61,7 @@ stressTest
|
||||
-> (TypeEnv, Exp)
|
||||
-> (TypeEnv, Exp)
|
||||
-> Spec
|
||||
stressTest f before after = it "Random context" $ forAllShrink (listOf1 arbitrary) shrink $ \ctx ->
|
||||
stressTest f before after = it "Stress test" $ forAllShrink (listOf1 arbitrary) shrink $ \ctx ->
|
||||
let c = createExpr ctx
|
||||
in (f (c before)) == (c after)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user