Module

Test.QuickCheck.Laws.Data.EuclideanRing

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

#checkEuclideanRing Source

checkEuclideanRing :: forall a eff. EuclideanRing a => Arbitrary a => Eq a => Proxy a -> QC eff Unit
  • Integral domain: a /= 0 and b /= 0 implies a * b /= 0
  • Multiplicative Euclidean function: a = (a / b) * b + (a `mod` b) where degree a > 0 and degree a <= degree (a * b)