Skip to content

Commit dc274b6

Browse files
authored
Update StalinSortTest.java
1 parent c0ad91f commit dc274b6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.thealgorithms.sorts;
22

33
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
4-
54
import org.junit.jupiter.api.Test;
65

76
public class StalinSortTest {
@@ -19,7 +18,7 @@ public void testSortIntegers() {
1918
public void testSortStrings() {
2019
StalinSort stalinSort = new StalinSort();
2120
String[] input = {"c", "a", "e", "b", "d"};
22-
String[] expected = {"a", "b", "c", "d", "e"};
21+
String[] expected = {"c", "e"};
2322
String[] result = stalinSort.sort(input);
2423
assertArrayEquals(expected, result);
2524
}
@@ -28,7 +27,7 @@ public void testSortStrings() {
2827
public void testSortWithDuplicates() {
2928
StalinSort stalinSort = new StalinSort();
3029
Integer[] input = {1, 3, 2, 2, 5, 4};
31-
Integer[] expected = {1, 2, 5};
30+
Integer[] expected = {1, 3, 5};
3231
Integer[] result = stalinSort.sort(input);
3332
assertArrayEquals(expected, result);
3433
}

0 commit comments

Comments
 (0)