From cfa411b7327906b9465e9f3e24d9f1eb1d72af09 Mon Sep 17 00:00:00 2001
From: Winston Jodjana <winj@cs.washington.edu>
Date: Thu, 27 Jan 2022 18:34:06 -0800
Subject: [PATCH] Update TopKSortTests.java

---
 src/test/java/ckpt2/TopKSortTests.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/test/java/ckpt2/TopKSortTests.java b/src/test/java/ckpt2/TopKSortTests.java
index f0a52f3..741adf1 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
+}
-- 
GitLab