From 47902bd8a5c7fe60cbac6f819787ee90726ac4a0 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 21 Nov 2022 08:05:50 -0500 Subject: [PATCH] fix: ensure non-empty array is generated #2672 (#3047) --- agama/engine/src/test/java/io/jans/agama/test/MathFlowTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agama/engine/src/test/java/io/jans/agama/test/MathFlowTest.java b/agama/engine/src/test/java/io/jans/agama/test/MathFlowTest.java index 387965048de..3a4754a4c48 100644 --- a/agama/engine/src/test/java/io/jans/agama/test/MathFlowTest.java +++ b/agama/engine/src/test/java/io/jans/agama/test/MathFlowTest.java @@ -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 list = new ArrayList<>(); for (int i = 0; i < len; i++) {