Skip to content
Snippets Groups Projects
Commit bb0347fc authored by noapo's avatar noapo
Browse files

test à 100%

parent 5260196a
No related branches found
No related tags found
No related merge requests found
Pipeline #10504 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment