Support giving a minimum
& maximum
to Data.Floats
#22
Closed
Seelengrab
started this conversation in
Design & Ideas
Replies: 1 comment 8 replies
-
This is probably the biggest feature missing from Supposition for me. Are there any code contributions that would make it easier to move towards this? Thanks! |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is currently not supported since the data model is not rich enough to provide good shrinks (without rejecting too many test cases), but would be very nice to have. This would mostly copy what Hypothesis is doing here, which might require #25 so that the generated values continue to shrink well.
The workaround for now is to use
assume!
in user code involvingData.Floats
to reject any unwanted samples.Beta Was this translation helpful? Give feedback.
All reactions