Skip to content

Instantly share code, notes, and snippets.



Created Mar 18, 2015
What would you like to do?
module Main where
import Python
import Test.QuickCheck
import Test.QuickCheck.Monadic
square :: Int -> IO Int
square = defVV "export = lambda x: x * x"
main = do
quickCheck $ monadicIO $ do
v <- pick arbitrary
r <- run $ square v
assert $ r == v * v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment