Exemplo n.º 1
0
  @Test
  public void testBinarySearch() throws Exception {
    bubbleSort(arr);

    int val = 13;
    int index = binarySearch(arr, val);
    int expectedIndex = 2;

    assertEquals(index, expectedIndex);
  }
Exemplo n.º 2
0
 @Test
 public void testBubbleSort() throws Exception {
   bubbleSort(arr);
   assertArrayEquals(arr, expected);
 }