-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Arbitraries containing null don't work correctly when used exhaustively #77
Comments
Using |
Minimal test for failing combination:
|
I'm just starting to try understanding what you want to do so bear with me... Your last example
This is almost what I'd expect. I'm just wondering why When I switch on randomized generation with |
should also be able to be used in an exhaustive generation context. I'll have a look at that as well. |
Ah yes, sorry, that might have been too much information with too little explanation ;-)
Given
Randomized generation is fine in all cases, but must be selected manually. |
Understood. I'm going to examine that. |
Bug concerning handling of null values in exhaustive generation has been fixed. Already available in version 1.2.2-SNAPSHOT. See 24ff64c Exhaustive generation of |
Thank you for the quick response! |
The exhaustive generation of single big decimal range is now also possible (1e4cc24) and available in 1.2.2-SNAPSHOT All of your examples above should now hopefully work as expected. Thanks for catching two glitches in a single go! |
Great, thank you! |
We want to exhaustively test parameters that can be either null or zero. This seems to be not possible at the moment. In the cases where jqwik automatically selects exhaustive generation (nullOrZero 1, 2 and 4), only null or zero is ever generated, depending on how the arbitrary is created. Forcing random generation on the other hand leads to the generation of both null and zero.
Test output:
Edit: The
nullOrZero2
combination actually does work, but the others not. So it seems null must not be the first value created.Edit2: Even then we do not get the full test matrix when testing two parameters:
The text was updated successfully, but these errors were encountered: