Open nick8325 opened 8 years ago
It seems like all of the properties are only being evaluated once with QuickCheck 2.9, not just prop_req_out_of_range
... further investigation is needed. Any ideas what else I should look at?
Sorry, the change we made to QuickCheck turned out to be a bit too aggressive. If you just change MkProperty
to property
in prop_req_out_of_range
then it should work, and all the other properties should work too. (This requires QuickCheck 2.9.2 which I just released.)
In the latest QuickCheck,
prop_req_out_of_range
will only be tested 1 time, not 100. This is because QuickCheck now assumes that any property without aforAll
(or similar) is deterministic.The easiest way to fix it is to use a normal quantifier instead of
MkProperty
. Something like the following (untested) should keep the types as you need them:Alternatively, you can wrap the property in
again
to tell QuickCheck that it's nondeterministic.