@@ -0,0 +1,734 @@
+package cicles;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0Aimport  org.apache.commons.io.output.ByteArrayOutputStream;%0Aimport java.io.PrintStream;%0Apublic class SquareTest %7B%0A%0A    @Test%0A    public void whenInptXthenOutputY()%7B%0A        Square sq = new Square(1,2,3);%0A        float result =sq.calculate(1);%0A        assertThat(result, is(6.0f));%0A%0A    %7D%0A    @Test%0A    public void whenInputParamwhenShovREsult()%7B%0AByteArrayOutputStream out = new ByteArrayOutputStream();%0A        System.setOut(new PrintStream(out));%0A        Square sq = new Square(1,2,3);%0A        sq.show(5,10,1);%0A        assertThat(out.toString(),is(%22%D0%97%D0%BD%D0%B0%D1%87%D0%B5%D0%BD%D0%B8%D0%B5 %D1%84%D1%83%D0%BD%D1%86%D0%B8%D0%B8 %D0%B2 %D0%BF%D1%80%D0%BE%D0%BC%D0%B5%D0%B6%D1%83%D1%82%D0%BA%D0%B5 %D0%BE%D1%82  5  %D0%B4%D0%BE  10  %D1%81 %D1%88%D0%B0%D0%B3%D0%BE%D0%BC  1%5Cr%5Cn%22));%0A    %7D%0A%7D%0A

test qadratic function