Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testDecodeIntFails (0.1 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        assertThat(UnsignedInts.decode("0X13579135")).isEqualTo(0x13579135);
        assertThat(UnsignedInts.decode("0")).isEqualTo(0);
      }
    
      public void testDecodeIntFails() {
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("0xfffffffff"));
    
        assertThrows(NumberFormatException.class, () -> UnsignedInts.decode("-5"));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top