Skip to content

user larger keys for IntMap tests #788

Closed
@jwaldmann

Description

@jwaldmann

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions