Skip to content

Commit

Permalink
fix: ensure non-empty array is generated #2672
Browse files Browse the repository at this point in the history
  • Loading branch information
jgomer2001 committed Nov 21, 2022
1 parent 870a84f commit 14e662c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void runEmpty() {
@Test
public void runRandom() {

int len = (int) (Math.random() * 10);
int len = (int) (1 + Math.random() * 10);
List<Integer> list = new ArrayList<>();

for (int i = 0; i < len; i++) {
Expand Down

0 comments on commit 14e662c

Please sign in to comment.