Module

Test.QuickCheck.Laws.Data.Eq

Package
purescript-quickcheck-laws
Repository
garyb/purescript-quickcheck-laws

#checkEq Source

checkEq :: forall a. Arbitrary a => Eq a => Proxy a -> Effect Unit
  • Reflexivity: x == x = true
  • Symmetry: x == y = y == x
  • Transitivity: if x == y and y == z then x == z
  • Negation: x /= y = not (x == y)