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

Add property tests for generic shrinking functions #3008

Conversation

jonathanknowles
Copy link
Contributor

Issue Number

#2999

Summary

This PR adds property and unit tests for the following functions in Test.QuickCheck.Extra:

  • genericRoundRobinShrink
  • interleaveRoundRobin

@jonathanknowles jonathanknowles self-assigned this Nov 9, 2021
@jonathanknowles jonathanknowles force-pushed the jonathanknowles/test-generic-shrinking branch from 1e30b55 to 3515f12 Compare November 9, 2021 06:08
@jonathanknowles jonathanknowles force-pushed the jonathanknowles/test-generic-shrinking branch from 1ca31f5 to 3c3919e Compare November 9, 2021 06:15
jonathanknowles and others added 2 commits November 9, 2021 06:18
We give it an increased possibility of generating zero values.

This increases the probability that we'll generate a minimal test record.
Copy link
Contributor

@sevanspowell sevanspowell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@jonathanknowles jonathanknowles force-pushed the jonathanknowles/test-generic-shrinking branch from 3c3919e to 225becb Compare November 9, 2021 06:19
@jonathanknowles jonathanknowles merged commit 49eec98 into feature/generics-sop-reduce-boilerplate Nov 9, 2021
@jonathanknowles jonathanknowles deleted the jonathanknowles/test-generic-shrinking branch November 9, 2021 06:24
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