示例#1
0
 @Test
 public void testSubtractUByteInvalid() throws Exception {
   try {
     UByte.MIN_UBYTE.subtract(ubyte(1));
     fail();
   } catch (NumberFormatException e) {
   }
 }
示例#2
0
  @Test
  public void testSubtractIntInvalid() throws Exception {
    try {
      UByte.MIN_UBYTE.subtract(1);
      fail();
    } catch (NumberFormatException e) {
    }

    try {
      UByte.MAX_UBYTE.subtract(-1);
      fail();
    } catch (NumberFormatException e) {
    }
  }