package ru.alexandr;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.assertThat;
/**.
 * Triangle Test.
 * @author Alexander Golubev.
 * since 05.12.2016.
 */
 public class TriangleTest {
	/**.
	* Triangle test.
	*/
	@Test
    public void trianglTest() {
		final int x1 = 1;
		final int y1 = 2;
		final int x2 = 2;
		final int y2 = 2;
		final int x3 = 2;
		final int y3 = 1;
		final double result = 0.49;
		Triangle triangle = new Triangle(new Point(x1, y1), new Point(x2, y2), new Point(x3, y3));
		assertThat(result, is(result));
    }
}
@@ -302,19 +302,22 @@
 %09%09final 
-int
+double
  x1 = 1;
@@ -325,19 +325,22 @@
 %09%09final 
-int
+double
  y1 = 2;
@@ -348,19 +348,22 @@
 %09%09final 
-int
+double
  x2 = 2;
@@ -371,19 +371,22 @@
 %09%09final 
-int
+double
  y2 = 2;
@@ -394,19 +394,22 @@
 %09%09final 
-int
+double
  x3 = 2;
@@ -417,19 +417,22 @@
 %09%09final 
-int
+double
  y3 = 1;
@@ -460,16 +460,31 @@
 t = 0.49
+999999999999983
 ;%0A%09%09Tria
@@ -583,22 +583,31 @@
 ertThat(
-result
+triangle.area()
 , is(res

add TriangleTest.java