RelCheck.hs revision b87efd3db0d2dc41615ea28669faf80fc1b48d56
module Common.Lib.RelCheck where
import Test.QuickCheck
import Common.Lib.Rel
import qualified Data.Map as Map
import qualified Data.Set as Set
keys = Map.keys $ toMap r
(Set.size (mostRight rel) <= 3 &&
length (Map.keys $ toMap r) > 6) ==>
(Set.size (toSet $ irreflex r) < 10) `trivial`
collect (length (Map.keys $ toMap r))
test6 = fromList [(2,1::Int),(3,1),(5,2),(5,4),(4,5),(6,3),(7,3),(8,5),(8,6),(8,7),(9,8),(8,9),(9,5),(2,-1),(-11,-10),(-12,-10),(-1,-3)]
(length (Map.keys $ toMap rel) > 6) ==>
(Set.size (toSet $ irreflex rel) < 10) `trivial`
collect (length (Map.keys $ toMap rel))
(Set.size (nodes rel) > 6 &&
(Set.size (toSet rel) < 10) `trivial`
collect (Set.size (nodes rel))