示例#1
0
 public void testMax() {
   assertEquals(LEAST, UnsignedInts.max(LEAST));
   assertEquals(GREATEST, UnsignedInts.max(GREATEST));
   assertEquals(
       (int) 0xff1a618bL,
       UnsignedInts.max(
           (int) 8L,
           (int) 6L,
           (int) 7L,
           (int) 0x12345678L,
           (int) 0x5a4316b8L,
           (int) 0xff1a618bL,
           (int) 0L));
 }
示例#2
0
 public void testMax_noArgs() {
   try {
     int unused = UnsignedInts.max();
     fail();
   } catch (IllegalArgumentException expected) {
   }
 }