Closed
Description
Prompted by #787 (comment), I replaced the Arbitrary instance with
instance Arbitrary a => Arbitrary (IntMap a) where
arbitrary = fmap (fromList . fmap (\(k,v) -> (getLarge k, v))) arbitrary
Good thing: all tests are green. So, no action required. We still might want to replace the instance?
That section of the code has heading Arbitrary, reasonably balanced trees
. I think "reasonable" is the wrong goal here - for correctness tests, I want all sorts of data, including "unreasonable". This might be different from performance tests where we might want typical, and that could mean "small keys", as produced by the current instance.