From 5260196a141418bcb919488867672974059c81bf Mon Sep 17 00:00:00 2001
From: noapo <noa.pozzodiborgo@gmail.com>
Date: Tue, 24 Jan 2023 15:29:37 +0100
Subject: [PATCH] =?UTF-8?q?test=20=C3=A0=20100%?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/test/java/fr/nancy/iut/SphereTest.java | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/src/test/java/fr/nancy/iut/SphereTest.java b/src/test/java/fr/nancy/iut/SphereTest.java
index 3295f40..1959734 100644
--- a/src/test/java/fr/nancy/iut/SphereTest.java
+++ b/src/test/java/fr/nancy/iut/SphereTest.java
@@ -59,19 +59,15 @@ public class SphereTest {
 
 
   @Test
-  public void testInContactWithTrue() throws Exception
+  public void testInContactWith() throws Exception
   {
-    Sphere s1 = new Sphere(1.5, new Point3d(1.0, 2.0, 3.0));
-    Sphere autre = new Sphere(1.5, new Point3d(2.0, 3.0, 4.0));
-    assertTrue(s1.inContactWith(autre));
+    Sphere s1 = new Sphere(1.5, new Point3d(0, 0, 3.0));
+    Sphere s2 = new Sphere(1.5, new Point3d(2.0, 3.0, 0));
+    Sphere s3 = new Sphere(4, new Point3d(0, 0, 3.0));
+    assertTrue(s3.inContactWith(s2));
+    assertTrue(s3.inContactWith(s1));
+    assertFalse(s2.inContactWith(s1));
   }
 
-  @Test
-  public void testInContactWithFalse() throws Exception
-  {
-    Sphere s1 = new Sphere(1.5, new Point3d(1.0, 2.0, 3.0));
-    Sphere autre = new Sphere(1, new Point3d(10.0, 50.0, 40.0));
-    assertFalse(s1.inContactWith(autre));
-  }
 
 }
\ No newline at end of file
-- 
GitLab