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.list failing within edge cases in case of null values #3982

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

oliverblaha
Copy link
Contributor

This shall fix the issue as described in #3981.
Instead of just assuming that a null value means "there is no edge case", this change adds explicitly checking that, effectively fixing the problem.

@@ -91,6 +92,11 @@ class CollectionsTest : DescribeSpec({
it.shouldHaveAtMostSize(500)
}
}

it("not fail on edge cases for non-empty lists with null values") {
Copy link
Contributor

Choose a reason for hiding this comment

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

as the success here is "it doesn't throw an exception", should we say so: shouldNotThrowAny ...
also do we need to add any other checks for the output?

@oliverblaha
Copy link
Contributor Author

oliverblaha commented Apr 25, 2024 via email

@oliverblaha
Copy link
Contributor Author

Updated: I've added some more scenarios and introduced some output checks.

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.

None yet

2 participants