Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comments #1

Open
BertLisser opened this issue Sep 21, 2018 · 0 comments
Open

Comments #1

BertLisser opened this issue Sep 21, 2018 · 0 comments

Comments

@BertLisser
Copy link

BertLisser commented Sep 21, 2018

The 4 properties which must be tested must be:
Ex. 3

  • x>3 && even x
  • x>3 || even x
  • even x && x>3 || even x
  • even x

Ex. 4
doTestPermutation = testR 1 100 doPermutation isPermutation
In this test returns isPermutation always true. The test must also generate non permutations.

Ex.5
testDeran = quickCheckResult (\xs -> length xs <= 5 --> (foldr (&&) True $ map (isDerangement xs) (deranI xs)))
can be chenged into
testDeran = quickCheckResult (\xs -> length xs <= 5 --> (foldr (&&) True $ map (isDerangement xs) (deran xs)))::[Int]->Bool
Then you don't need to define deranI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant