@Test public void testBinarySearch() throws Exception { bubbleSort(arr); int val = 13; int index = binarySearch(arr, val); int expectedIndex = 2; assertEquals(index, expectedIndex); }
@Test public void testBubbleSort() throws Exception { bubbleSort(arr); assertArrayEquals(arr, expected); }