mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Completed porting all operations
This commit is contained in:
parent
9ac5393c17
commit
1205ed4c1e
9 changed files with 684 additions and 44 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue