Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active February 12, 2017 14:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
prop_optimize_eval :: Expr -> Property
prop_optimize_eval e =
forAll genTotalEnv $ \env ->
eval env e == eval env (optimize e)
quickCheck prop_optimize_eval
> +++ OK, passed 100 tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment