package ru.job4j.condition;

import org.junit.Test;

import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/** @since 23.05.2017
*Class Triangle
*@author Krohmal Kirill (mailto:krohmal_kirill@mail.ru)
*@since 23.05.2017
*/
public class TriangleTest {
/**
* Test Triangle.
*/
	@Test
	public void whenTriangleSet() {
		//assign
		double expected = 9.921567416492215;
		Point a = new Point(1, 2);
		Point b = new Point(2, 4);
		Point c = new Point(4, 2);
		Triangle triangle = new Triangle(a, b, c);
		//act
		double result = triangle.area();
		//assert
		assertThat(result, is(expected));
	}
}
@@ -45,16 +45,68 @@
 t.Test;%0A
+import static org.hamcrest.number.IsCloseTo.closeTo;
 %0Aimport 
@@ -610,16 +610,26 @@
 le.area(
+-3, 0, 0.3
 );%0A%09%09//a
@@ -666,16 +666,22 @@
 expected
+, 0.01
 ));%0A%09%7D%0A%7D

change in TriangleTest