diff --git a/src/test/java/fr/nancy/iut/SphereTest.java b/src/test/java/fr/nancy/iut/SphereTest.java index 3342054ac699a26c257d69cc68bfd4f68d3db2c9..31b06333356ff243b875223b182313d25a1e0ab1 100644 --- a/src/test/java/fr/nancy/iut/SphereTest.java +++ b/src/test/java/fr/nancy/iut/SphereTest.java @@ -14,4 +14,10 @@ public class SphereTest { assertEquals(14.137166941154069, mySphere.computeVolume(), 0.0); } + @Test + public void testDistanceSquaredTo() throws Exception { + Sphere mySphere = new Sphere(1.5); + Sphere otherSphere = new Sphere(1.5); + assertEquals(0.0, mySphere.distanceSquaredTo(otherSphere), 0.0); + } } \ No newline at end of file