package ru.nivanov;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;


public class BubbleSortMassTest {
	
	@Test
	public void whenSortCorrectThenReturnOk() {
	int[] values=new int [5];
	values [0] = 7;
	values [1] = 12;
	values [2] = 3;
	values [3] = 8;
	values [4] = 2;
	BubbleSortMass testMas = new BubbleSortMass (values);
	testMas.bubbleSort(values);
	int [] expect=new int [5];
	expect [0] = 2;
	expect [1] = 3;
	expect [2] = 7;
	expect [3] = 8;
	expect [4] = 12;
	
	
    assertThat(values, is (expect)); 	 	
	}


}
@@ -218,105 +218,20 @@
 ues=
-new int %5B5%5D;%0A%09values %5B0%5D = 7;%0A%09values %5B1%5D = 12;%0A%09values %5B2%5D = 3;%0A%09values %5B3%5D = 8;%0A%09values %5B4%5D = 2
+%7B7,12,3,8,2%7D
 ;%0A%09B
@@ -331,115 +331,23 @@
 ect=
-new int %5B5%5D;%0A%09expect %5B0%5D = 2;%0A%09expect %5B1%5D = 3;%0A%09expect %5B2%5D = 7;%0A%09expect %5B3%5D = 8;%0A%09expect %5B4%5D = 
+%7B2,3,7,8,
 12
+%7D
 ;%0A%09
-%0A%09%0A    
 asse
@@ -382,11 +382,9 @@
  %09 %09%0A%09%7D%0A
-%0A%0A
 %7D

fix errs