We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ad91f commit dc274b6Copy full SHA for dc274b6
src/test/java/com/thealgorithms/sorts/StalinSortTest.java
@@ -1,7 +1,6 @@
1
package com.thealgorithms.sorts;
2
3
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
4
-
5
import org.junit.jupiter.api.Test;
6
7
public class StalinSortTest {
@@ -19,7 +18,7 @@ public void testSortIntegers() {
19
18
public void testSortStrings() {
20
StalinSort stalinSort = new StalinSort();
21
String[] input = {"c", "a", "e", "b", "d"};
22
- String[] expected = {"a", "b", "c", "d", "e"};
+ String[] expected = {"c", "e"};
23
String[] result = stalinSort.sort(input);
24
assertArrayEquals(expected, result);
25
}
@@ -28,7 +27,7 @@ public void testSortStrings() {
28
27
public void testSortWithDuplicates() {
29
30
Integer[] input = {1, 3, 2, 2, 5, 4};
31
- Integer[] expected = {1, 2, 5};
+ Integer[] expected = {1, 3, 5};
32
Integer[] result = stalinSort.sort(input);
33
34
0 commit comments