constrained
Safe HaskellSafe-Inferred
LanguageHaskell2010

Constrained.Test

Synopsis

Documentation

data NumberyType where Source #

Constructors

N ∷ (Typeable a, Numbery a) ⇒ Proxy a → NumberyType 

testSpecHasSpec fn a ⇒ StringSpecification fn a → Spec Source #

testSpec'HasSpec fn a ⇒ BoolStringSpecification fn a → Spec Source #

noInfinityGen (NumSpec fn Integer) Source #

When we multiply intervals, we get a bounding box, around the possible values. When the intervals have infinities, the bounding box can be very loose. In fact the order in which we multiply intervals with infinities can affect how loose the bounding box is. So ((NegInf, n) * (a, b)) * (c,d) AND (NegInf, n) * ((a, b) * (c,d)) may have different bounding boxes To test the associative laws we must have no infinities, and then the associative law will hold.