@@ -0,0 +1,641 @@
+package ru.matevosyan.lesson_4_Loops;%0A%0Aimport org.junit.Test;%0Aimport static org.hamcrest.core.Is.is;%0Aimport static org.junit.Assert.*;%0Aimport static org.hamcrest.Matchers.closeTo;%0A%0Apublic class SquareTest %7B%0A%09%09%0A%09@Test%0A%09public void whenAddABCandXThanGetResultY()%7B%0A%0A%09%09//assign%0A%09%09Square y = new Square(1f,2f,3f);%0A%0A%09%09//act%0A%09%09float result = y.calculate(4);%0A%09%09assertThat(result, is(27f));%0A%09%0A%09%7D%0A%0A%09// @Test%0A%09// public void whenAddStartFinishandStepandXThanGetResultY()%7B%0A%0A%09%09//assign%0A%09%09//Square y = new Square(1f,2f,3f);%0A%09%09%09%0A%09%09//act%0A%09%09//float result = y.show(0, 5, 1);%0A%09%09//assertThat(result, is(27f));%0A%0A%09%09//if x=0,1,2,3,4------y=3,6,11,18,27%0A%0A//%09%7D%0A%7D%0A%0A%0A

add SquareTest.java