Test options for the datatype under test.
Instances to test. Key is typeclass name and value is the
instance under test. For example, { Monad: Option.Monad }
will run
the monad typeclass laws on Option
.
Optional
parameters: ParameterOverridesOptional runtime fast-check
parameters.
Test typeclass laws for the given instances of some contravariant
datatype: a higher-kinded datatype where the constructor type
parameter appears in the contravariant position, for example
Predicate
. The underlying types used will all be
readonly number[]
. This is a version of testTypeclassLaws
for contravariant datatypes.
Contravariant test options for the datatype under test.
Instances to test. Key is typeclass name and value is the
instance under test. For example, { Invariant: Predicate.Invariant }
will run the Invariant typeclass laws on the datatype Predicate
.
Optional
parameters: ParameterOverridesOptional runtime fast-check
parameters.
Test typeclass laws for the given instances of some datatype. This is just like testTypeclassLawsFor, but with all functions monomorphic on an underlying type of
readonly number[]
. At thecontravariant
key of this function, you will find the version of this function for contravariant datatypes.Example