Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Jan 4, 2024
1 parent 0aaf67a commit 88b0386
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 88b0386

Please sign in to comment.