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

Add ChooseArbitrary and OneOfArbitrary #8

Merged
merged 2 commits into from
Mar 30, 2024
Merged

Conversation

ohbarye
Copy link
Owner

@ohbarye ohbarye commented Mar 30, 2024

Change

This adds the following 2 arbitraries.

  • ChooseArbitrary : It receives a Range then generates any value in the range.
  • OneOfArbitrary : It receives a Array<any> then generates any value in the array.

They are reusable to add other arbitraries like CharArbitrary since we can think that character is one of codepoint.

@ohbarye ohbarye merged commit 2cbad83 into main Mar 30, 2024
3 checks passed
@ohbarye ohbarye deleted the choose-one_of-arbitrary branch March 30, 2024 12:54
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.

1 participant