Skip to content
Snippets Groups Projects
Commit 7c6de370 authored by DOAN Lancelot's avatar DOAN Lancelot
Browse files

test 2

parent e8c01d39
No related branches found
No related tags found
No related merge requests found
Pipeline #10489 passed
...@@ -14,4 +14,11 @@ public class SphereTest { ...@@ -14,4 +14,11 @@ public class SphereTest {
assertEquals(9.42477796076938, mySphere.computeVolume(), 0.0); assertEquals(9.42477796076938, mySphere.computeVolume(), 0.0);
} }
@Test
public void testDistanceTo() throws Exception {
Sphere s1 = new Sphere(1, new Point3d(10, 10, 10));
Sphere s2 = new Sphere(2, new Point3d(10, 10, 11));
assertEquals(1, s1.distanceTo(s2));
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment