Skip to content

Commit d543f18

Browse files
committed
Enhance the test key generator
1 parent 726d69c commit d543f18

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Util/Key.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ arbitraryHash = do
4646
[ (2, fromIntegral . QC.getLarge <$> arbitrary @(Large Word16))
4747
, (1, QC.getSmall <$> arbitrary)
4848
, (1, QC.getLarge <$> arbitrary)
49+
-- Hashes where the lowest `maxChildren` bits are set are interesting
50+
-- edge cases. See #491.
51+
, (1, QC.elements [-1, 0xFF, 0xFFF])
4952
]
5053
i <- QC.frequency gens
5154
moreCollisions' <- QC.elements [moreCollisions, id]

0 commit comments

Comments
 (0)