Skip to content

Commit 19ac95b

Browse files
authored
Merge branch 'master' into add_tests_for_factorial_recursion
2 parents 3d03dd0 + 8129686 commit 19ac95b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.gitpod.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gitpod/workspace-java-17:2024-04-07-21-39-34
1+
FROM gitpod/workspace-java-17:2024-04-15-14-41-42
22

33
ENV LLVM_SCRIPT="tmp_llvm.sh"
44

src/test/java/com/thealgorithms/maths/FactorialRecursionTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private static Stream<Arguments> inputStream() {
2121
}
2222

2323
@Test
24-
void testNegativeNumber() {
25-
Exception exception = assertThrows(IllegalArgumentException.class, () -> FactorialRecursion.factorial(-1));
24+
void testThrowsForNegativeInput() {
25+
assertThrows(IllegalArgumentException.class, () -> FactorialRecursion.factorial(-1));
2626
}
2727
}

0 commit comments

Comments
 (0)