package array;

import org.junit.Test;

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


public class RotationArrayTest {
    @Test
    public void whenPassTheArrayThenReturnRotaitArray()  {
        RotationArray rotation = new RotationArray();
        int [][] test = {{1,2,3},
                        {4,5,6},
                        {7,8,9}};

        int [][]result = rotation.rotatian(test);

        assertThat(result, is (result));

        for(int i =0; i<=result.length-1;i++){
            for (int j =0; j<=result.length -1;j++){
                System.out.print(result [i][j] + " ");
            }
            System.out.println();
        }



    }

}
@@ -386,296 +386,168 @@
 %5B%5D%5B%5D
-result = rotation.rotatian(test);%0A%0A        assertThat(result, is (result));%0A%0A        for(int i =0; i%3C=result.length-1;i++)%7B%0A            for (int j =0; j%3C=result.length -1;j++)%7B%0A                System.out.print(result %5Bi%5D%5Bj%5D + %22 %22);%0A            %7D%0A            System.out.println(
+ expected = %7B%7B7,4,1%7D,%0A                             %7B8,5,2%7D,%0A                             %7B9,6,3 %7D%7D;%0A%0A        int %5B%5D%5B%5Dresult = rotation.rotatian(test
 );%0A
+%0A
         
 %7D%0A%0A%0A
@@ -542,19 +542,50 @@
         
-%7D%0A%0A
+assertThat(result, is (expected));
 %0A%0A    %7D%0A

create expected value "