Skip to content

Commit 0676565

Browse files
authored
test_build_line.py -> update (Fillet)Polyline tests to 2 pt minimum
1 parent 58a06ad commit 0676565

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_build_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def test_filletpolyline(self):
145145
self.assertEqual(len(p.edges().filter_by(GeomType.LINE)), 4)
146146

147147
with self.assertRaises(ValueError):
148-
FilletPolyline((0, 0), (1, 0), radius=0.1)
148+
FilletPolyline((0, 0), radius=0.1)
149149
with self.assertRaises(ValueError):
150150
FilletPolyline((0, 0), (1, 0), (1, 1), radius=-1)
151151

@@ -308,7 +308,7 @@ def test_error_conditions(self):
308308
Line((0, 0)) # Need two points
309309
with self.assertRaises(ValueError):
310310
with BuildLine():
311-
Polyline((0, 0), (1, 1)) # Need three points
311+
Polyline((0, 0)) # Need two points
312312
with self.assertRaises(ValueError):
313313
with BuildLine():
314314
RadiusArc((0, 0), (1, 0), 0.1) # Radius too small

0 commit comments

Comments
 (0)