mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-05 18:20:46 -08:00
Changed the tests to not expect a valueorrer when having a 0 radius, but add two assertEquals so the number of Circles and Lines should be correct
This commit is contained in:
parent
dc90a4b15a
commit
c7034202f3
1 changed files with 4 additions and 1 deletions
|
|
@ -183,7 +183,7 @@ class BuildLineTests(unittest.TestCase):
|
|||
self.assertEqual(len(p.edges().filter_by(GeomType.CIRCLE)), 2)
|
||||
self.assertEqual(len(p.edges().filter_by(GeomType.LINE)), 3)
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
with BuildLine(Plane.YZ):
|
||||
p = FilletPolyline(
|
||||
(0, 0),
|
||||
(10, 0),
|
||||
|
|
@ -192,6 +192,9 @@ class BuildLineTests(unittest.TestCase):
|
|||
radius=(1, 2, 3, 0),
|
||||
close=True,
|
||||
)
|
||||
self.assertEqual(len(p.edges().filter_by(GeomType.CIRCLE)), 3)
|
||||
self.assertEqual(len(p.edges().filter_by(GeomType.LINE)), 4)
|
||||
|
||||
|
||||
with self.assertRaises(ValueError):
|
||||
p = FilletPolyline(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue