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

test

parent 8959cac3
No related branches found
No related tags found
No related merge requests found
Pipeline #10496 passed
......@@ -28,4 +28,24 @@ public class SphereTest {
assertEquals(true , s1.inContactWith(s2));
}
@Test
public void testSphere() throws Exception {
Point3d p = new Point3d(10, 10, 10);
Sphere s1 = new Sphere(1, p);
assertEquals(1, s1.getRadius());
assertEquals(p , s1.getPos());
}
@Test
public void testSphereVide() throws Exception {
Point3d p = new Point3d();
Sphere s = new Sphere();
assertEquals(0, s.getRadius());
assertEquals(p, s.getPos());
}
}
\ 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