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

Improve Arbitrary Value instance. #1038

Merged
merged 1 commit into from
Jun 10, 2023
Merged

Conversation

phadej
Copy link
Collaborator

@phadej phadej commented Jun 10, 2023

Fixes #980. As discussed there, simply changing n <= 0 to n <= 1 gives good generation of strings, bools, numbers and null. Turns out it also forbids [] and {} from being generated, so I added those explicitly to that case.

My understanding is this requires a major version bump, as a change in behavior of an exported function.

--

This is rebased #981, therefore closes #981.

Fixes #980. As discussed there, simply changing `n <= 0` to `n <= 1`
gives good generation of strings, bools, numbers and null. Turns out
it also forbids `[]` and `{}` from being generated, so I added those
explicitly to that case.

My understanding is this requires a major version bump, as a change in
behavior of an exported function.
@phadej phadej merged commit 0aa757f into master Jun 10, 2023
@phadej phadej deleted the pr-980-rebase-better-arbitrary branch June 10, 2023 10:29
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.

Arbitrary instance seems low quality
2 participants