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 some more type related tests for oneof #3183

Merged
merged 1 commit into from
Sep 12, 2022
Merged

Conversation

dubzzz
Copy link
Owner

@dubzzz dubzzz commented Sep 12, 2022

While ideally writing oneof() should be prevented having a version accepting oneof(...arrayOfArbs) but rejecting oneof() was not straightforward to come up with.

The current output for oneof() seems already to be already a good trade-off. So I believe we can close #546 for now.

Fixes #546

Category:

  • ✨ Introduce new features
  • 📝 Add or update documentation
  • ✅ Add or update tests
  • 🐛 Fix a bug
  • 🏷️ Add or update types
  • ⚡️ Improve performance
  • Other(s): ...

Potential impacts:

  • Generated values
  • Shrink values
  • Performance
  • Typings
  • Other(s): ...

While ideally writing `oneof()` should be prevented having a version accepting `oneof(...arrayOfArbs)` but rejecting `oneof()` was not straightforward to come up with.

The current output for `oneof()` seems already to be already a good trade-off. So I believe we can close #546 for now.

Fixes #546
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 5ec5de6:

Sandbox Source
Vanilla Configuration
@fast-check/examples Configuration

@dubzzz dubzzz merged commit ba24400 into main Sep 12, 2022
@dubzzz dubzzz deleted the type-oneof-tests branch September 12, 2022 17:46
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.

Feedback on oneof
1 participant