Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for testCheckPositive_zeroInt (0.09 seconds)

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

    /**
     * Unit tests for {@link MathPreconditions}.
     *
     * @author Ben Yu
     */
    @GwtCompatible
    @NullUnmarked
    public class MathPreconditionsTest extends TestCase {
    
      public void testCheckPositive_zeroInt() {
        assertThrows(IllegalArgumentException.class, () -> MathPreconditions.checkPositive("int", 0));
      }
    
      public void testCheckPositive_maxInt() {
        MathPreconditions.checkPositive("int", Integer.MAX_VALUE);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 8K bytes
    - Click Count (0)
Back to Top