Commit 643cd1d3 authored by Younis's avatar Younis
Browse files

Add new file BubblesortTest

parent 4e6aa580
import static org.junit.Assert.assertArrayEquals;
import org.junit.Test;
public class BubbleSortTest{
@Test
public void testBubbleSortStudent1() {
int[] inputArray = {5, 90, 35, 150, 45, 3};
int[] expectedOutput = {3, 5, 35, 45, 90, 150};
BubbleSortStudent1.sort(inputArray);
assertArrayEquals(expectedOutput, inputArray);
}
@Test
public void testBubbleSortStudent2() {
int[] inputArray = {5, 90, 35, 150, 45, 3};
int[] expectedOutput = {3, 5, 35, 45, 90, 150};
BubbleSortStudent2.sort(inputArray);
assertArrayEquals(expectedOutput, inputArray);
}
@Test
public void testBubbleSortStudent3() {
int[] inputArray = {5, 90, 35, 150, 45, 3};
int[] expectedOutput = {3, 5, 35, 45, 90, 150};
BubbleSortStudent3.sort(inputArray);
assertArrayEquals(expectedOutput, inputArray);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment