Closed sjakobi closed 2 years ago
Maybe it would also be good to deduplicate the Key
type declarations. Currently, tests/Properties/HashMapLazy.hs
, tests/Properties/HashSet.hs
and tests/Strictness.hs
all contain the same newtype Key
declaration.
https://github.com/haskell-unordered-containers/unordered-containers/blob/4da2c201a274f7f3306117b479c51aef7af61129/tests/Strictness.hs#L24-L29
This hash function produces only values in the range
[0..19]
. As a result, a typical generated tree will have aBitmapIndexed
root node that contains someLeaf
s and someCollision
s. NoFull
nodes at all, and no internal/non-rootBitmapIndexed
nodes!It seems very likely that some code added since #317 hasn't been tested at all. :/