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

chore: assert collection in sample::select is not empty #554

Merged

Conversation

thomaseizinger
Copy link
Contributor

This will already fail further down the call-chain but asserting it here gives much better stracktraces, allowing users to debug much faster, where in their potentially very large and composed strategy the problem is.

Copy link
Contributor

@rexmas rexmas left a comment

Choose a reason for hiding this comment

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

yup, nice little find. ty

@matthew-russo matthew-russo merged commit c915c5b into proptest-rs:main Mar 5, 2025
5 checks passed
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.

3 participants