From d98d2a31ca2cc27a24018d02859269b42ce5ee4b Mon Sep 17 00:00:00 2001 From: jairrab Date: Tue, 4 Jun 2019 10:58:22 +0800 Subject: [PATCH] improve test driver statistics and results gathering --- .../src/main/java/com/jairrab/testlibrary/SortingExercise.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt b/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt index 6ed4a26..c05c550 100644 --- a/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt +++ b/testlibrary/src/main/java/com/jairrab/testlibrary/SortingExercise.kt @@ -19,7 +19,7 @@ fun main() { var array = IntArray(ARRAY_SIZE) println("Array size = $ARRAY_SIZE") - when (-1) { + when (1) { -1 -> array = intArrayOf(1, 2, 4, 3, 5, 7, 6, 8, 9, 10, 12, 11, 13, 14, 15, 16, 17, 19, 18, 21) // custom array 0 -> for (i in 0 until array.size) array[i] = i //ascending elements 1 -> for (i in 0 until array.size) array[i] = ThreadLocalRandom.current().nextInt(LOW, HIGH + 1) //random