We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a404490 commit 6222987Copy full SHA for 6222987
tests/Properties/HashMapLazy.hs
@@ -349,12 +349,12 @@ tests =
349
\(Fn f :: Fun A B) (m :: HMK A) -> isValid (HM.map f m)
350
]
351
, testGroup "traverseWithKey"
352
- [ testProperty "model" $ QC.mapSize (\s -> s `div` 8) $
+ [ testProperty "model" $ QC.mapSize (\s -> min 18 $ div s 8) $
353
\(x :: HMKI) ->
354
let f k v = [keyToInt k + v + 1, keyToInt k + v + 2]
355
ys = HM.traverseWithKey f x
356
in List.sort (fmap toOrdMap ys) === List.sort (M.traverseWithKey f (toOrdMap x))
357
- , testProperty "valid" $ QC.mapSize (\s -> s `div` 8) $
+ , testProperty "valid" $ QC.mapSize (\s -> min 18 $ div s 8) $
358
359
360
0 commit comments