예제 #1
0
 @Test
 public void testRotatedSearchDuplNotThere() throws Exception {
   assertEquals(-1, Search.rotatedSearch(rotatedDupl, 6));
 }
예제 #2
0
 @Test
 public void testRotatedSearchDupl() throws Exception {
   assertEquals(8, Search.rotatedSearch(rotatedDupl, 3));
 }