We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002de56 commit 86bd720Copy full SHA for 86bd720
src/test/java/com/thealgorithms/maths/FactorialRecursionTest.java
@@ -4,7 +4,6 @@
4
import static org.junit.jupiter.api.Assertions.assertThrows;
5
6
import java.util.stream.Stream;
7
-import org.junit.jupiter.api.Assertions;
8
import org.junit.jupiter.api.Test;
9
import org.junit.jupiter.params.ParameterizedTest;
10
import org.junit.jupiter.params.provider.Arguments;
@@ -22,7 +21,7 @@ private static Stream<Arguments> inputStream() {
22
21
}
23
24
@Test
25
- void testNegativeNumber() {
26
- Exception exception = assertThrows(IllegalArgumentException.class, () -> FactorialRecursion.factorial(-1));
+ void testThrowsForNegativeInput() {
+ assertThrows(IllegalArgumentException.class, () -> FactorialRecursion.factorial(-1));
27
28
0 commit comments