Skip to content
Snippets Groups Projects
Commit 618a2787 authored by WinJ's avatar WinJ
Browse files

Merge remote-tracking branch 'origin/master'

parents 79c75d08 cfa411b7
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ public class TopKSortTests { ...@@ -18,7 +18,7 @@ public class TopKSortTests {
Integer[] arr_sorted = {7, 8, 9, 10}; Integer[] arr_sorted = {7, 8, 9, 10};
TopKSort.sort(arr, K, Integer::compareTo); TopKSort.sort(arr, K, Integer::compareTo);
for(int i = 0; i < K; i++) { 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 { ...@@ -30,7 +30,7 @@ public class TopKSortTests {
Integer[] arr_sorted = {6, 7, 8, 9}; Integer[] arr_sorted = {6, 7, 8, 9};
TopKSort.sort(arr, K, Integer::compareTo); TopKSort.sort(arr, K, Integer::compareTo);
for(int i = 0; i < K; i++) { 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