Skip to content

Commit a93b60e

Browse files
Added missing line at the end
1 parent 426e0f3 commit a93b60e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/main/java/com/thealgorithms/recursion/TowerOfHanoi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ private static void moveDisks(int n, char source, char destination, char auxilia
6161
moves.add("Move disk " + n + " from rod " + source + " to rod " + destination);
6262
moveDisks(n - 1, auxiliary, destination, source, moves);
6363
}
64-
}
64+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ public void testStandardCase() {
3636
public void testNegativeInput() {
3737
assertThrows(IllegalArgumentException.class, () -> { TowerOfHanoi.solveTowerOfHanoi(-5, 'A', 'C', 'B'); }, "Should throw exception for negative disks");
3838
}
39-
}
39+
}
40+

0 commit comments

Comments
 (0)