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

Fixes shrinking for shuffleCase #53

Merged
merged 3 commits into from
Sep 4, 2021

Conversation

TysonMN
Copy link
Member

@TysonMN TysonMN commented Sep 4, 2021

Workaround for hedgehogqa/fsharp-hedgehog#157 that fixes the specific issue in hedgehogqa/fsharp-hedgehog#192, which is that shrinking for shuffleCase doesn't work correctly.

As with PR #51, the fix is to obtain all of the generators first, then swap List and Gen (via sequence this time), then mutate inside Gen.map.

Also as with PR #51, there is a test that shows this is an improvement.

I am also looking at the mutation in shuffle, but I haven't been able write a test for that case yet, so this PR is just for shuffleCase.

@cmeeren
Copy link
Collaborator

cmeeren commented Sep 4, 2021

Looks good. Thanks! 👍

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.

2 participants