We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb7cc47 commit 6bbabd8Copy full SHA for 6bbabd8
src/test/java/com/thealgorithms/recursion/FactorialRecursionTest.java
@@ -2,6 +2,7 @@
2
3
import static org.junit.jupiter.api.Assertions.assertEquals;
4
import static org.junit.jupiter.api.Assertions.assertThrows;
5
+
6
import org.junit.jupiter.api.Test;
7
8
class FactorialRecursionTest {
@@ -28,7 +29,6 @@ void testFactorialOfLargerNumber() {
28
29
30
@Test
31
void testFactorialOfNegativeNumber() {
- assertThrows(IllegalArgumentException.class,
32
- () -> FactorialRecursion.factorial(-1));
+ assertThrows(IllegalArgumentException.class, () -> FactorialRecursion.factorial(-1));
33
}
34
0 commit comments