<commit_before>package ru.job4j.loop;

import org.junit.Test;

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

/**
 * PaintTest.
 *
 * @author <NAME> (mailto:<EMAIL>)
 * @version $Id$
 * @since 0.1
 */
public class PaintTest {
    /**
     * Test piramid h = 2.
     */

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

    /**
     * Test piramid h = 3.
     */
    //" ^ " + "\n" + "^^^" + "\n" + "^^^^^" + "\n"
    @Test
    public void whenPiramidWithHeightThreeThenStringWithThreeRows() {
        Paint paint = new Paint();
        String result = paint.piramid(3);
        final String line = System.getProperty("line.separator");
        String expected = String.format("  ^  %s ^^^ %s^^^^^%s", line, line, line);
        assertThat(result, is(expected));//напишите здесь тест, проверяющий формирование пирамиды для высоты 3.
    }
}<commit_msg>task #4412 Change test<commit_after>package ru.job4j.loop;

import org.junit.Test;

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

/**
 * PaintTest.
 *
 * @author <NAME> (mailto:<EMAIL>)
 * @version $Id$
 * @since 0.1
 */
public class PaintTest {
    /**
     * Test piramid h = 2.
     */

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

    /**
     * Test piramid h = 3.
     */
    @Test
    public void whenPiramidWithHeightThreeThenStringWithThreeRows() {
        Paint paint = new Paint();
        String result = paint.piramid(3);
        final String line = System.getProperty("line.separator");
        String expected = String.format("  ^  %s ^^^ %s^^^^^%s", line, line, line);
        assertThat(result, is(expected));//напишите здесь тест, проверяющий формирование пирамиды для высоты 3.
    }
}
{'fraction_non_alphanumeric': 0.1501736111111111, 'fraction_numerical': 0.008680555555555556, 'mean_word_length': 2.7663398692810457, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3867313', 'n_tokens_mistral': 780, 'n_tokens_neox': 760, 'n_words': 176}