From bb0347fca2420040e096fa596979b708bdcbcb5f Mon Sep 17 00:00:00 2001 From: noapo <noa.pozzodiborgo@gmail.com> Date: Tue, 24 Jan 2023 15:36:12 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/fr/nancy/iut/SphereTest.java b/src/test/java/fr/nancy/iut/SphereTest.java index 1959734..c086e95 100644 --- a/src/test/java/fr/nancy/iut/SphereTest.java +++ b/src/test/java/fr/nancy/iut/SphereTest.java @@ -44,8 +44,8 @@ public class SphereTest { public void testDistanceTo() 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)); - assertEquals(1.7320508075688772, s1.distanceTo(autre), 0.0); + Sphere s2 = new Sphere(1.5, new Point3d(2.0, 3.0, 4.0)); + assertEquals(1.7320508075688772, s1.distanceTo(s2), 0.0); } @@ -53,8 +53,8 @@ public class SphereTest { public void testDistanceSquaredTo() 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)); - assertEquals(3.0, s1.distanceSquaredTo(autre), 0.0); + Sphere s2 = new Sphere(1.5, new Point3d(2.0, 3.0, 4.0)); + assertEquals(3.0, s1.distanceSquaredTo(s2), 0.0); } -- GitLab