Skip to content

Commit

Permalink
test_direct_api.py -> test wire/edge volumes are zero
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Jan 19, 2024
1 parent 421ffad commit a4a59e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_direct_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,14 @@ def test_common_plane(self):
self.assertAlmostEqual(common.z_dir.Y, 0, 5)
self.assertAlmostEqual(common.z_dir.Z, 0, 5)

def test_edge_volume(self):
edge = Edge.make_line((0,0),(1,1))
self.assertAlmostEqual(edge.volume, 0, 5)

def test_wire_volume(self):
wire = Wire.make_rect(1,1)
self.assertAlmostEqual(wire.volume, 0, 5)


class TestMixin2D(DirectApiTestCase):
"""Test the 2D add in methods"""
Expand Down

0 comments on commit a4a59e5

Please sign in to comment.