Safe Haskell | None |
---|---|
Language | Haskell2010 |
Eq properties
You will need TypeApplications
to use these.
Synopsis
- eqSpecOnValid :: forall a. (Show a, Eq a, Typeable a, GenValid a) => Spec
- eqSpecOnInvalid :: forall a. (Show a, Eq a, Typeable a, GenInvalid a) => Spec
- eqSpec :: forall a. (Show a, Eq a, Typeable a, GenUnchecked a) => Spec
- eqSpecOnArbitrary :: forall a. (Show a, Eq a, Typeable a, Arbitrary a) => Spec
- eqSpecOnGen :: forall a. (Show a, Eq a, Typeable a) => Gen a -> String -> (a -> [a]) -> Spec
Documentation
eqSpecOnValid :: forall a. (Show a, Eq a, Typeable a, GenValid a) => Spec Source #
Standard test spec for properties of Eq instances for valid values
Example usage:
eqSpecOnValid @Double
eqSpecOnInvalid :: forall a. (Show a, Eq a, Typeable a, GenInvalid a) => Spec Source #
Standard test spec for properties of Eq instances for invalid values
Example usage:
eqSpecOnInvalid @Double
eqSpec :: forall a. (Show a, Eq a, Typeable a, GenUnchecked a) => Spec Source #
Standard test spec for properties of Eq instances for unchecked values
Example usage:
eqSpec @Int