Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testFactorialNegative (0.08 seconds)

  1. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          assertEquals(expected, BigIntegerMath.factorial(i));
        }
      }
    
      public void testFactorial0() {
        assertEquals(BigInteger.ONE, BigIntegerMath.factorial(0));
      }
    
      public void testFactorialNegative() {
        assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.factorial(-1));
      }
    
      public void testBinomialSmall() {
        runBinomialTest(0, 30);
      }
    
      @GwtIncompatible // too slow
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 27.1K bytes
    - Click Count (0)
Back to Top