Skip to content

Commit 69e69b5

Browse files
committed
Fix clang errors
1 parent c0dc63b commit 69e69b5

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

src/test/java/com/thealgorithms/others/TowerOfHanoiTest.java

+6-16
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
package com.thealgorithms.others;
22

3-
import org.junit.jupiter.api.Test;
4-
import static org.junit.jupiter.api.Assertions.*;
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assertions.assertTrue;
5+
56
import java.util.ArrayList;
67
import java.util.List;
8+
import org.junit.jupiter.api.Test;
79

810
public class TowerOfHanoiTest {
911

@@ -23,11 +25,7 @@ public void testHanoiWithTwoDiscs() {
2325
TowerOfHanoi.shift(2, "Pole1", "Pole2", "Pole3", result);
2426

2527
// Expected output for 2 discs
26-
List<String> expected = List.of(
27-
"Move 1 from Pole1 to Pole2",
28-
"Move 2 from Pole1 to Pole3",
29-
"Move 1 from Pole2 to Pole3"
30-
);
28+
List<String> expected = List.of("Move 1 from Pole1 to Pole2", "Move 2 from Pole1 to Pole3", "Move 1 from Pole2 to Pole3");
3129
assertEquals(expected, result);
3230
}
3331

@@ -37,15 +35,7 @@ public void testHanoiWithThreeDiscs() {
3735
TowerOfHanoi.shift(3, "Pole1", "Pole2", "Pole3", result);
3836

3937
// Expected output for 3 discs
40-
List<String> expected = List.of(
41-
"Move 1 from Pole1 to Pole3",
42-
"Move 2 from Pole1 to Pole2",
43-
"Move 1 from Pole3 to Pole2",
44-
"Move 3 from Pole1 to Pole3",
45-
"Move 1 from Pole2 to Pole1",
46-
"Move 2 from Pole2 to Pole3",
47-
"Move 1 from Pole1 to Pole3"
48-
);
38+
List<String> expected = List.of("Move 1 from Pole1 to Pole3", "Move 2 from Pole1 to Pole2", "Move 1 from Pole3 to Pole2", "Move 3 from Pole1 to Pole3", "Move 1 from Pole2 to Pole1", "Move 2 from Pole2 to Pole3", "Move 1 from Pole1 to Pole3");
4939
assertEquals(expected, result);
5040
}
5141

0 commit comments

Comments
 (0)