Created
February 12, 2017 15:24
-
-
Save deque-blog/b94e64d055748e573f6cd2490d9dc354 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
makePartialEnv :: Set.Set Id -> Gen Env | |
makePartialEnv deps = do | |
v <- elements (Set.toList deps) | |
makeEnvWith (Set.delete v deps) | |
prop_missing_dependencies_forbid_eval :: Property | |
prop_missing_dependencies_forbid_eval = | |
forAll (sized genExpr) $ \e -> | |
let deps = dependencies e | |
in Set.size deps > 0 ==> | |
forAll (makePartialEnv deps) $ \env -> | |
not (isCst (partial env e)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment