QuickCheck is a Haskell library for software testing. It generates test cases and validates them against assertions provided by the programmer.
Questions tagged [quickcheck]
422 questions
-3
votes
2 answers
Test for positions- function
positions :: Eq a => a -> [a] -> [Int]
positions x xs = [i | (x',i) <- zip xs [0..], x == x']
i need to create a Test function for the positions function, which passes the quickcheck.
Does someone has an idea?

Goat2
- 5
-3
votes
1 answer
Instance of Arbitrary Haskell
I need to make an instance of arbitrary on my Haskell program, I'm creating a deck of cards (which is of type deck), and deck is a list of Cards, in order to make a new deck the program uses a mkStdGen and a number to prompt a seed, in order to…

Filipe Capela
- 13
- 1