Skip to content

Commit 9722f7f

Browse files
authored
Update StalinSortTest.java
1 parent 10f97f0 commit 9722f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/thealgorithms/sorts/StalinSortTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public class StalinSortTest {
1515
@MethodSource("provideArraysForStalinSort")
1616
public void testStalinSort(Comparable[] inputArray, Comparable[] expectedArray) {
1717
StalinSort stalinSort = new StalinSort();
18-
assertArrayEquals(expectedArray, stalinSort.sort(inputArray));
18+
// Explicitly call the sort method that accepts arrays
19+
assertArrayEquals(expectedArray, stalinSort.sort((Comparable[]) inputArray));
1920
}
2021

2122
private static Stream<Arguments> provideArraysForStalinSort() {
@@ -61,4 +62,3 @@ public void testWithMixedDataTypes() {
6162
});
6263
}
6364
}
64-

0 commit comments

Comments
 (0)