package ru.pravvich;

import org.junit.Test;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;

public class PointTest {	
	@Test
	public void wthenSetPointThenResultDistanceBetweenPoint() {
			Point a = new Point(2, 1);
			Point b = new Point(2, 5);
			double result = a.distanceTo(b); 						
			assertThat(result, is(4));
	
	}
	
	

}




@@ -125,21 +125,24 @@
 c class 
-Point
+Triangle
 Test %7B%09%0A
@@ -174,16 +174,17 @@
 SetPoint
+s
 ThenResu
@@ -189,32 +189,92 @@
 sult
-DistanceBetween
+AreaTriangle() %7B%0A%09%09%09Triangle triangle = new Triangle();%0A%09%09%09Point a = new 
 Point(
-) %7B
+0,0);
 %0A%09%09%09
@@ -271,33 +271,33 @@
 (0,0);%0A%09%09%09Point 
-a
+b
  = new Point(2, 
@@ -297,12 +297,11 @@
 int(
-2, 1
+0,3
 );%0A%09
@@ -300,33 +300,33 @@
 (0,3);%0A%09%09%09Point 
-b
+c
  = new Point(2, 
@@ -326,15 +326,15 @@
 int(
-2, 5
+4,0
 );%0A
+%0A
 %09%09%09d
@@ -352,22 +352,29 @@
 t = 
-a.distanceTo(b
+triangle.area(a, b, c
 ); %09
@@ -404,17 +404,18 @@
 ult, is(
-4
+6d
 ));%0A%09%0A%09%7D
@@ -419,13 +419,8 @@
 %0A%09%7D%0A
-%09%0A%09%0A%0A
 %7D%0A%0A%0A

add chapter_001\lesson_3\src\test\java\ru\pravvich\TriangleTest.java