Completed porting all operations

This commit is contained in:
Roger Maitland 2023-03-21 14:56:50 -04:00
parent 9ac5393c17
commit 1205ed4c1e
9 changed files with 684 additions and 44 deletions

View file

@ -471,8 +471,8 @@ class AlgebraTests(unittest.TestCase):
def test_part_and_empty(self):
b = Box(1, 2, 3)
r = b & Part()
self.assertIsNone(r.wrapped)
with self.assertRaises(ValueError):
r = b & Part()
# Sketch + - & Empty
@ -503,8 +503,8 @@ class AlgebraTests(unittest.TestCase):
def test_sketch_and_empty(self):
b = Rectangle(1, 2)
r = b & Sketch()
self.assertIsNone(r.wrapped)
with self.assertRaises(ValueError):
r = b & Sketch()
class LocationTests(unittest.TestCase):
@ -563,3 +563,7 @@ class LocationTests(unittest.TestCase):
(0.0, -math.sqrt(2) / 2, math.sqrt(2) / 2),
6,
)
if __name__ == "__main__":
unittest.main()