Skip to content
Snippets Groups Projects
Commit cfa411b7 authored by Winston Jodjana's avatar Winston Jodjana
Browse files

Update TopKSortTests.java

parent 39cca707
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment