Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Arb.map to honor minSize parameter in both generation and shrinks #2890

Merged
merged 1 commit into from Mar 22, 2022

Conversation

myuwono
Copy link
Contributor

@myuwono myuwono commented Mar 22, 2022

In this PR

  • Implements the logic used in Arb.set to Arb.map.
  • Fix MapShrinker to filter out shrinks that are lower than minSize
  • tests for Arb.map

potentially fixes #2889

@sksamuel sksamuel merged commit 9729b7e into master Mar 22, 2022
@sksamuel sksamuel deleted the bugfix/arbitrary-map branch March 22, 2022 12:33
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.

Arb.map generates and shrinks Maps to a size less than minSize
2 participants