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

Shrink when using Arb.bind #2542

Merged
merged 9 commits into from
Sep 26, 2021
Merged

Shrink when using Arb.bind #2542

merged 9 commits into from
Sep 26, 2021

Conversation

Kantis
Copy link
Member

@Kantis Kantis commented Sep 26, 2021

Closes #2461

@Kantis Kantis requested a review from myuwono September 26, 2021 16:28
val stdout = captureStandardOut {
shouldThrowAny {
checkAll(arb) {
// Better ways to simulate a bug for some input value?
Copy link
Member

Choose a reason for hiding this comment

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

You can fix the seed

)
},
kotlin.lazy {
shrink(a).map { combineShrinks(it, b, c, d, e, f, g, h, i, j, k, l, m, n) } +
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you! this is awesome 🙌

@Kantis Kantis merged commit 4fe166a into master Sep 26, 2021
@Kantis Kantis deleted the shrink-bind branch September 26, 2021 21:38
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.

Does the bind() function of property testing support shrinking?
4 participants