Function testContravariantLaws

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.

  • Type Parameters

    • F extends TypeLambda

    Parameters

    Returns (<Ins>(instances: Ins, parameters?: ParameterOverrides) => void)

      • <Ins>(instances, parameters?): void
      • Type Parameters

        Parameters

        • instances: Ins

          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.

        • Optionalparameters: ParameterOverrides

          Optional runtime fast-check parameters.

        Returns void