@Test public void testSubtractUByteInvalid() throws Exception { try { UByte.MIN.subtract(ubyte(1)); fail(); } catch (NumberFormatException e) { } }
@Test public void testSubtractIntInvalid() throws Exception { try { UByte.MIN.subtract(1); fail(); } catch (NumberFormatException e) { } try { UByte.MAX.subtract(-1); fail(); } catch (NumberFormatException e) { } }
@Test public void testAddIntInvalid() throws Exception { try { UByte.MAX.add(1); fail(); } catch (NumberFormatException e) { } try { UByte.MIN.add(-1); fail(); } catch (NumberFormatException e) { } }