package ru.job4j.loop;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**
* Test.
*
* @author Sergey Indyukov (mailto:onl.ont@mail.ri)
* @version $Id$
* @since 0.1
*/

public class PaintTest {
/**
* Test whenPiramidWithHeightTwoThenStringWithTwoRows.
*/
    @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));
    }
/**
* Test whenPiramidWithHeightThreeThenStringWithThreeRows.
*/
    @Test
    public void whenPiramidWithHeightThreeThenStringWithThreeRows() {
		Paint paint = new Paint();
        String result = paint.piramid(3);
        String expected = String.format(" ^ %s^^^%s^^^^^", System.getProperty("line.separator"));
        assertThat(result, is(expected));
       //  ,      3.
    }
}
@@ -968,16 +968,73 @@
   //
-  ,     
+%D0%BD%D0%B0%D0%BF%D0%B8%D1%88%D0%B8%D1%82%D0%B5 %D0%B7%D0%B4%D0%B5%D1%81%D1%8C %D1%82%D0%B5%D1%81%D1%82, %D0%BF%D1%80%D0%BE%D0%B2%D0%B5%D1%80%D1%8F%D1%8E%D1%89%D0%B8%D0%B9 %D1%84%D0%BE%D1%80%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5 %D0%BF%D0%B8%D1%80%D0%B0%D0%BC%D0%B8%D0%B4%D1%8B %D0%B4%D0%BB%D1%8F %D0%B2%D1%8B%D1%81%D0%BE%D1%82%D1%8B
  3.%0A

task 4412