quickcheck Questions
5
Solved
The function verboseCheck from QuickCheck 1 seems to be absent in QuickCheck 2 (or at least, I can't find it). Is there any other way to show which values are used during testing?
Cleocleobulus asked 25/3, 2010 at 16:2
1
Solved
I have some old Haskell code that includes QuickCheck test cases. Newer versions of QuickCheck (I've just upgraded to 2.4.0.1) include type class instances for Arbitrary Word8 and others. These did...
Far asked 13/4, 2011 at 1:10
1
Solved
I'm using QuickCheck 1 and I've got the following data types:
data A = ...
instance Arbitrary A where ...
data B = ...
instance Arbitrary B where ...
data C = C A B
Now I'd like to define an Arb...
Cud asked 27/2, 2011 at 16:13
2
Solved
Background
For fun, I'm trying to write a property for quick-check that can test the basic idea behind cryptography with RSA.
Choose two distinct primes, p and q.
Let N = p*q
e is some number rela...
Timekeeper asked 20/2, 2011 at 4:49
2
Solved
Can anyone give me a brief example of testing IO actions using Monadic QuickCheck?
Conjoined asked 14/2, 2010 at 2:27
1
Solved
What are the major differences between QuickCheck 1 and QuickCheck 2? From looking at Haddock docs I can see that it is split across more modules, coarbitrary has been replaced by the new Fun type ...
Hazeghi asked 19/12, 2009 at 16:1
3
Solved
I am trying to write a prop that changes a Sudoku and then checks if it's still valid.
However, I am not sure how to use the "oneof"-function properly. Can you give me some hints, please?
prop_ca...
Overtask asked 1/12, 2009 at 20:53
1
Solved
I have a type class Atomic, which defines functions for converting certain types to/from a wrapper value (Atom). I'd like to define a QuickCheck property which states: "for all instances of Atomic,...
Ruminant asked 19/9, 2009 at 18:19
1
Solved
I am testing a function called extractions that operates over any list.
extractions :: [a] -> [(a,[a])]
extractions [] = []
extractions l = extract l []
where extract [] _ = []
extract (x:xs)...
Giotto asked 15/9, 2008 at 15:59
© 2022 - 2024 — McMap. All rights reserved.