Skip to content

Improve Arbitrary Value instance. - #1038

Merged
phadej merged 1 commit into
masterfrom
pr-980-rebase-better-arbitrary
Jun 10, 2023
Merged

phadej merged 1 commit into
masterfrom
pr-980-rebase-better-arbitrary

Conversation

@phadej

@phadej phadej commented Jun 10, 2023 •

Copy link
Copy Markdown
Collaborator

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