Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testParseUnsignedByte (0.25 sec)

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

        try {
          UnsignedBytes.parseUnsignedByte(value, radix);
          fail();
        } catch (NumberFormatException expected) {
        }
      }
    
      public void testParseUnsignedByte() {
        // We can easily afford to test this exhaustively.
        for (int i = 0; i <= 0xff; i++) {
          assertThat(UnsignedBytes.parseUnsignedByte(Integer.toString(i))).isEqualTo((byte) i);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top