According to the jqwik documentation here: https://jqwik.net/docs/current/user-guide.html#integer-constraints it states the integer constraint annotations as:
@Positive: Numbers larger than 0. For all integral types.
@Negative: Numbers lower than 0. For all integral types.
etc.
Are there any convenience annotations for auto generating something like @NegativeOrZero / @PositiveOrZero?
I'm currently using the following code:
@Provide
Arbitrary<Integer> negativeOrZero() {
return Arbitraries.integers().between(Integer.MIN_VALUE, 0);
}
The shorthand annotations would definitely come in handy if available by default.