Skip to content

Commit

Permalink
test_build_line.py -> update (Fillet)Polyline tests to 2 pt minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
jdegenstein authored Jan 31, 2024
1 parent 58a06ad commit 0676565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_build_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_filletpolyline(self):
self.assertEqual(len(p.edges().filter_by(GeomType.LINE)), 4)

with self.assertRaises(ValueError):
FilletPolyline((0, 0), (1, 0), radius=0.1)
FilletPolyline((0, 0), radius=0.1)
with self.assertRaises(ValueError):
FilletPolyline((0, 0), (1, 0), (1, 1), radius=-1)

Expand Down Expand Up @@ -308,7 +308,7 @@ def test_error_conditions(self):
Line((0, 0)) # Need two points
with self.assertRaises(ValueError):
with BuildLine():
Polyline((0, 0), (1, 1)) # Need three points
Polyline((0, 0)) # Need two points
with self.assertRaises(ValueError):
with BuildLine():
RadiusArc((0, 0), (1, 0), 0.1) # Radius too small
Expand Down

0 comments on commit 0676565

Please sign in to comment.