Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package p04_BubleSort;
- import org.junit.Assert;
- import org.junit.Test;
- import p04_BubbleSortTest.Bubble;
- public class BubbleTest {
- @Test
- public void testBubbleSort() {
- int [] numbers = {34, 2, 0, 45, 76, 23, 1, 8, 897, 39, 54};
- Bubble.sort(numbers);
- int [] expected = {0, 1, 2, 8, 23, 34, 39, 45, 54, 76, 897};
- Assert.assertArrayEquals(expected, numbers);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement