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

Arb.flatMap is broken #1500

Closed
sksamuel opened this issue Jun 7, 2020 · 0 comments
Closed

Arb.flatMap is broken #1500

sksamuel opened this issue Jun 7, 2020 · 0 comments
Assignees
Labels
bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework.
Milestone

Comments

@sksamuel
Copy link
Member

sksamuel commented Jun 7, 2020

Arbs by their nature are infinite, so flatMap { a -> a.flatMap { arbB } } doesn't work because the inner arb never expires to then request a value from the outer arb.

@sksamuel sksamuel added bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework. labels Jun 7, 2020
@sksamuel sksamuel changed the title Arb.flatMap should support infinite sequences Arb.flatMap is broken Jun 7, 2020
@sksamuel sksamuel closed this as completed Jun 7, 2020
@sksamuel sksamuel added this to the 4.1 milestone Jun 7, 2020
@sksamuel sksamuel self-assigned this Jun 7, 2020
@sksamuel sksamuel mentioned this issue Jun 7, 2020
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues that report a problem or error in the code. property-testing 📏 Related to the property testing mechanisms within the testing framework.
Projects
None yet
Development

No branches or pull requests

1 participant