Fixed test coverage in FactorialDoubleTest
@@ -50,6 +50,13 @@ public class FactorialDoubleTest {
Double.POSITIVE_INFINITY, FactorialDouble.create().value(n), 0d, n + "!");
}
+ @Test
+ public void testNonPositiveArgumentWithCache() {
+ Assertions.assertThrows(IllegalArgumentException.class,
+ () -> FactorialDouble.create().withCache(-1)
+ );
+ }
+
@Test
public void testNonPositiveArgument() {
Assertions.assertThrows(IllegalArgumentException.class,
