Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Jan 4, 2024
1 parent 9abfe68 commit 26a289f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +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.asserTrue((solid.Faces[1].normalAt(0,0) - n).Length < 10e-15)
self.asserTrue((solid.Faces[2].normalAt(0,0) + n).Length < 10e-15)
self.asserTrue(solid.Faces[1].valueAt(0,0)[2] - h < 10e-15)
self.asserTrue(solid.Faces[2].valueAt(0,0)[2] - 0. < 10e-15)
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)

if __name__ == "__main__":
unittest.main(verbosity=4)

0 comments on commit 26a289f

Please sign in to comment.