コード例 #1
0
 @Test
 public void testMaxLessThan() throws Exception {
   assertEquals(8, Search.maxLessThan(sorted2, 15));
   assertEquals(8, Search.maxLessThan(sorted2, 16));
   assertEquals(-1, Search.maxLessThan(sorted2, 0));
 }