diff --git a/tests/tests.py b/tests/tests.py index 8e64243..bf8630d 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -22,10 +22,10 @@ def test_helical_extrusion(self): # face 0 is the cylinder # face 1 is pointing in positive z direction # face 2 is pointing in negative z direction - self.assertTrue((solid.Faces[1].normalAt(0,0) - normal).Length < 10e-15) - self.assertTrue((solid.Faces[2].normalAt(0,0) + normal).Length < 10e-15) - self.assertTrue(solid.Faces[1].valueAt(0,0)[2] - height < 10e-15) - self.assertTrue(solid.Faces[2].valueAt(0,0)[2] - 0. < 10e-15) + self.assertAlmostEqual((solid.Faces[1].normalAt(0,0) - normal).Length, 0.) + self.assertAlmostEqual((solid.Faces[2].normalAt(0,0) + normal).Length, 0.) + self.assertAlmostEqual(solid.Faces[1].valueAt(0,0)[2], height) + self.assertAlmostEqual(solid.Faces[2].valueAt(0,0)[2], 0.) if __name__ == "__main__": unittest.main(verbosity=4) \ No newline at end of file