Skip to content

test: fix Arbitrary for Op - #30

Merged
cuviper merged 2 commits into
indexmap-rs:mainfrom
cuviper:arbitrary-op
Oct 6, 2026
Merged

cuviper merged 2 commits into
indexmap-rs:mainfrom
cuviper:arbitrary-op

Conversation

@cuviper

@cuviper cuviper commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Commit 72b7032 split the variants for pushing front/back, but missed the modulus length, so we haven't been testing the last RemoveEntry variant since then, even though it looked like we had a match case for it. Now we use a slice choose to involve them all.

This also add Arbitrary::shrink, and that exhaustive match should help remind us to generate all variants too.

Commit 72b7032 split the variants for pushing front/back, but
missed the modulus length, so we haven't been testing the last
`RemoveEntry` variant since then, even though it looked like we had a
match case for it. Now we use a slice `choose` to involve them all.
@cuviper
cuviper added this pull request to the merge queue Oct 6, 2026
Merged via the queue into indexmap-rs:main with commit a6c33c4 Oct 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant