package ru.job4j.loop;

import org.junit.Test;

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

/**
 * Test.
 *
 * @author Mikhail Vlasov (mailto:hednight@gmail.com)
 * @version 1
 * @since 4.8.2017
 */
public class PaintTest {

	/**.
	 * class PaintTest 2 storey piramid testing function
	 */
    @Test
    public void whenPiramidWithHeightTwoThenStringWithTwoRows() {
        Paint paint = new Paint();
        String result = paint.piramid(2);
        String expected = String.format(" ^ %s^^^", System.getProperty("line.separator"));
        assertThat(result, is(expected));
    }

	/**.
	 * class PaintTest 3 storey piramid testing function
	 */
    @Test
    public void whenPiramidWithHeightThreeThenStringWithThreeRows() {
		Paint paint = new Paint();
        String result = paint.piramid(3);
        String expected = String.format("  ^  %s ^^^ %s^^^^^", System.getProperty("line.separator"), System.getProperty("line.separator"));
        assertThat(result, is(expected));
    }
}
@@ -398,24 +398,18 @@
 ows() %7B%0A
-        
+%09%09
 Paint pa
@@ -423,32 +423,26 @@
 ew Paint();%0A
-        
+%09%09
 String resul
@@ -463,24 +463,18 @@
 mid(2);%0A
-        
+%09%09
 String e
@@ -544,32 +544,26 @@
 parator%22));%0A
-        
+%09%09
 assertThat(r
@@ -765,24 +765,18 @@
 aint();%0A
-        
+%09%09
 String r
@@ -801,24 +801,18 @@
 mid(3);%0A
-        
+%09%09
 String e
@@ -939,16 +939,10 @@
 ));%0A
-        
+%09%09
 asse

task 4412