diff --git a/src/test/java/ckpt2/TopKSortTests.java b/src/test/java/ckpt2/TopKSortTests.java index f0a52f3a078f63577aac8e8c3e14581c64d02d2f..741adf1166a3132385de088e25c2634acdf65860 100644 --- a/src/test/java/ckpt2/TopKSortTests.java +++ b/src/test/java/ckpt2/TopKSortTests.java @@ -18,7 +18,7 @@ public class TopKSortTests { Integer[] arr_sorted = {7, 8, 9, 10}; TopKSort.sort(arr, K, Integer::compareTo); for(int i = 0; i < K; i++) { - assertEquals(arr[i], arr_sorted[i]); + assertEquals(arr_sorted[i], arr[i]); } } @@ -30,7 +30,7 @@ public class TopKSortTests { Integer[] arr_sorted = {6, 7, 8, 9}; TopKSort.sort(arr, K, Integer::compareTo); for(int i = 0; i < K; i++) { - assertEquals(arr[i], arr_sorted[i]); + assertEquals(arr_sorted[i], arr[i]); } } -} \ No newline at end of file +}