1 module QuickCheck where
4 import qualified QuickCheck.Merit
5 import qualified QuickCheck.Value
7 quickchecks :: TestTree
10 [ QuickCheck.Merit.quickcheck
11 , QuickCheck.Value.quickcheck
12 -- , QuickCheck.Rank.quickcheck
14 , testProperty "majorityGauge and majorityValue consistency" $
15 \(SameLength (x@(Merit xs)::Merit G6,y@(Merit ys))) ->
16 not (all (==0) xs || all (==0) ys) ==>
17 case majorityGauge x`compare`majorityGauge y of
18 LT -> majorityValue x < majorityValue y
19 GT -> majorityValue x > majorityValue y