module Test.SDP.Eq
(
TestEq, eqTest
)
where
default ()
type TestEq l = l -> l -> l -> Bool
eqTest :: (Eq l) => l -> l -> l -> Bool
eqTest :: l -> l -> l -> Bool
eqTest l
xs l
ys l
zs = [Bool] -> Bool
forall (t :: * -> *). Foldable t => t Bool -> Bool
and
[
(l
xs l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
ys Bool -> Bool -> Bool
&& l
ys l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
zs) Bool -> Bool -> Bool
forall a. Ord a => a -> a -> Bool
<= (l
xs l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
zs),
(l
xs l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
ys) Bool -> Bool -> Bool
forall a. Eq a => a -> a -> Bool
== (l
ys l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
xs),
l
xs l -> l -> Bool
forall a. Eq a => a -> a -> Bool
== l
xs
]