@@ -260,7 +260,7 @@ tests =
260260 \ (x :: HMKI ) y -> HM. isSubmapOf x (HM. union x y)
261261 , testProperty " m1\\ m2 ⊆ m1" $
262262 \ (m1 :: HMKI ) (m2 :: HMKI ) -> HM. isSubmapOf (HM. difference m1 m2) m1
263- , testProperty " m1 ∩ m2 ≠ ∅ ⇒ m1 ⊈ m1\\ m2 " $
263+ , testProperty " m1 ∩ m2 ≠ ∅ ⇒ m1 ⊈ m1\\ m2 " $ QC. withMaxSize 200 $
264264 \ (m1 :: HMKI ) (m2 :: HMKI ) ->
265265 not (HM. null (HM. intersection m1 m2)) ==>
266266 not (HM. isSubmapOf m1 (HM. difference m1 m2))
@@ -303,9 +303,9 @@ tests =
303303 \ (Fn3 f) (x :: HMKI ) y -> isValid (HM. unionWithKey f x y)
304304 ]
305305 , testGroup " unions"
306- [ testProperty " model" $
306+ [ testProperty " model" $ QC. withMaxSize 200 $
307307 \ (ms :: [HMKI ]) -> toOrdMap (HM. unions ms) === M. unions (map toOrdMap ms)
308- , testProperty " valid" $
308+ , testProperty " valid" $ QC. withMaxSize 200 $
309309 \ (ms :: [HMKI ]) -> isValid (HM. unions ms)
310310 ]
311311 , testGroup " difference"
@@ -323,28 +323,28 @@ tests =
323323 \ (Fn2 f) (x :: HMK A ) (y :: HMK B ) -> isValid (HM. differenceWith f x y)
324324 ]
325325 , testGroup " intersection"
326- [ testProperty " model" $
326+ [ testProperty " model" $ QC. withMaxSize 200 $
327327 \ (x :: HMKI ) (y :: HMKI ) ->
328328 toOrdMap (HM. intersection x y) === M. intersection (toOrdMap x) (toOrdMap y)
329- , testProperty " valid" $
329+ , testProperty " valid" $ QC. withMaxSize 200 $
330330 \ (x :: HMKI ) (y :: HMKI ) ->
331331 isValid (HM. intersection x y)
332332 ]
333333 , testGroup " intersectionWith"
334- [ testProperty " model" $
334+ [ testProperty " model" $ QC. withMaxSize 200 $
335335 \ (Fn2 f :: Fun (A , B ) C ) (x :: HMK A ) (y :: HMK B ) ->
336336 toOrdMap (HM. intersectionWith f x y) === M. intersectionWith f (toOrdMap x) (toOrdMap y)
337- , testProperty " valid" $
337+ , testProperty " valid" $ QC. withMaxSize 200 $
338338 \ (Fn2 f :: Fun (A , B ) C ) (x :: HMK A ) (y :: HMK B ) ->
339339 isValid (HM. intersectionWith f x y)
340340 ]
341341 , testGroup " intersectionWithKey"
342- [ testProperty " model" $
342+ [ testProperty " model" $ QC. withMaxSize 200 $
343343 \ (Fn3 f :: Fun (Key , A , B ) C ) (x :: HMK A ) (y :: HMK B ) ->
344344 toOrdMap (HM. intersectionWithKey f x y)
345345 ===
346346 M. intersectionWithKey f (toOrdMap x) (toOrdMap y)
347- , testProperty " valid" $
347+ , testProperty " valid" $ QC. withMaxSize 200 $
348348 \ (Fn3 f :: Fun (Key , A , B ) C ) (x :: HMK A ) (y :: HMK B ) ->
349349 isValid (HM. intersectionWithKey f x y)
350350 ]
@@ -360,12 +360,12 @@ tests =
360360 \ (Fn f :: Fun A B ) (m :: HMK A ) -> isValid (HM. map f m)
361361 ]
362362 , testGroup " traverseWithKey"
363- [ testProperty " model" $ QC. mapSize ( \ s -> s `div` 8 ) $
363+ [ testProperty " model" $ QC. withMaxSize 22 $
364364 \ (x :: HMKI ) ->
365365 let f k v = [keyToInt k + v + 1 , keyToInt k + v + 2 ]
366366 ys = HM. traverseWithKey f x
367367 in List. sort (fmap toOrdMap ys) === List. sort (M. traverseWithKey f (toOrdMap x))
368- , testProperty " valid" $ QC. mapSize ( \ s -> s `div` 8 ) $
368+ , testProperty " valid" $ QC. withMaxSize 22 $
369369 \ (x :: HMKI ) ->
370370 let f k v = [keyToInt k + v + 1 , keyToInt k + v + 2 ]
371371 ys = HM. traverseWithKey f x
0 commit comments