package cicles;

import org.junit.Test;


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

/**
 * Created by Mama on 23.11.2016.
 */
public class PaintTest {
    @Test
    public void piramid() throws Exception {

        Paint paint = new Paint ();
        String piramid = paint.piramid(3);

        assertThat(piramid, is ("  1  \r\n 2 2 \r\n1 1 1\r\n"));
    }

}
@@ -33,18 +33,16 @@
 t.Test;%0A
-%0A%0A
 import s
@@ -111,49 +111,8 @@
 *;%0A%0A
-/**%0A * Created by Mama on 23.11.2016.%0A */
 %0Apub
@@ -163,34 +163,52 @@
 oid 
-piramid() throws Exception
+whenEnterHieghtthenReturnPiramidOfSymbols() 
  %7B%0A%0A
@@ -326,29 +326,29 @@
 (%22  
-1
+%5E
   %5Cr%5Cn 
-2 2
+%5E %5E
  %5Cr%5Cn
-1 1 1
+%5E   %5E
 %5Cr%5Cn

build piramid