The following code results in java.lang.IllegalStateException: Gave up after finding only 1 example(s) matching the assumptions, because the generators tend to generate empty arrays. Is this expected? Interestingly it seems to happen more often if I specify larger ranges like integers().between(0, 100), integers().between(0, 100) and less if I specify a smaller range like integers().between(0, 3).
The following code results in
java.lang.IllegalStateException: Gave up after finding only 1 example(s) matching the assumptions
, because the generators tend to generate empty arrays. Is this expected? Interestingly it seems to happen more often if I specify larger ranges likeintegers().between(0, 100)
,integers().between(0, 100)
and less if I specify a smaller range likeintegers().between(0, 3)
.The output of the snippet: