@Test public void testFindMinIntArrayCase10() { int arr[] = {2, 2, 2, 0, 2, 2, 2, 2, 2, 2, 2, 2}; int expectedMin = 0; int actualMin = MinInRotatedSortedArray.findMin(arr); assertEquals(expectedMin, actualMin); }
@Test public void testFindMinIntArrayCase8() { int arr[] = {3, 4, 5, 1, 2}; int expectedMin = 1; int actualMin = MinInRotatedSortedArray.findMin(arr); assertEquals(expectedMin, actualMin); }