@@ -21,7 +21,7 @@ prop_genKindCorrect = p_genKindCorrect False
2121See Note [Debugging generators that don't generate well-typed/kinded terms/types]
2222and see the utility tests below when this property fails. -}
2323p_genKindCorrect :: Bool -> Property
24- p_genKindCorrect debug = withMaxSuccess 1000 $
24+ p_genKindCorrect debug = withNumTests 1000 $
2525 -- Context minimality doesn't help readability, so no shrinking here
2626 forAllDoc " ctx" genCtx (const [] ) $ \ ctx ->
2727 -- Note, no shrinking here because shrinking relies on well-kindedness.
@@ -30,7 +30,7 @@ p_genKindCorrect debug = withMaxSuccess 1000 $
3030
3131-- | Check that shrinking types maintains kinds.
3232prop_shrinkTypeSound :: Property
33- prop_shrinkTypeSound = withMaxSuccess 500 $
33+ prop_shrinkTypeSound = withNumTests 500 $
3434 forAllDoc " ctx" genCtx (const [] ) $ \ ctx ->
3535 forAllDoc " k,ty" (genKindAndTypeWithCtx ctx) (shrinkKindAndType ctx) $ \ (k, ty) ->
3636 -- See discussion about the same trick in 'prop_shrinkTermSound'.
@@ -45,7 +45,7 @@ prop_shrinkTypeSound = withMaxSuccess 500 $
4545
4646-- | Test that shrinking a type results in a type of a smaller kind. Useful for debugging shrinking.
4747prop_shrinkTypeSmallerKind :: Property
48- prop_shrinkTypeSmallerKind = withMaxSuccess 3000 $
48+ prop_shrinkTypeSmallerKind = withNumTests 3000 $
4949 forAllDoc " k,ty" genKindAndType (shrinkKindAndType Map. empty) $ \ (k, ty) ->
5050 assertNoCounterexamples
5151 [ (k', ty')
@@ -55,13 +55,13 @@ prop_shrinkTypeSmallerKind = withMaxSuccess 3000 $
5555
5656-- | Test that shrinking kinds generates smaller kinds.
5757prop_shrinkKindSmaller :: Property
58- prop_shrinkKindSmaller = withMaxSuccess 30000 $
58+ prop_shrinkKindSmaller = withNumTests 30000 $
5959 forAllDoc " k" arbitrary shrink $ \ k ->
6060 assertNoCounterexamples [k' | k' <- shrink k, not $ leKind k' k]
6161
6262-- | Test that fixKind actually gives you something of the right kind.
6363prop_fixKind :: Property
64- prop_fixKind = withMaxSuccess 10000 $
64+ prop_fixKind = withNumTests 10000 $
6565 forAllDoc " ctx" genCtx (const [] ) $ \ ctx ->
6666 forAllDoc " k,ty" genKindAndType (shrinkKindAndType ctx) $ \ (k, ty) ->
6767 -- Note, fixKind only works on smaller kinds, so we use shrink to get a definitely smaller kind
@@ -74,7 +74,7 @@ prop_fixKind = withMaxSuccess 10000 $
7474
7575-- | Check that 'normalizeType' returns a normal type.
7676prop_normalizedTypeIsNormal :: Property
77- prop_normalizedTypeIsNormal = withMaxSuccess 1000 $
77+ prop_normalizedTypeIsNormal = withNumTests 1000 $
7878 forAllDoc " k,ty" genKindAndType (shrinkKindAndType Map. empty) $ \ (_, ty) ->
7979 unless (isNormalType . unNormalized . runQuote $ normalizeType ty) $
8080 Left " 'normalizeType' returned a non-normal type"
0 commit comments