diff --git a/tests/test_cadquery.py b/tests/test_cadquery.py index 07f7a4c4..95393ef3 100644 --- a/tests/test_cadquery.py +++ b/tests/test_cadquery.py @@ -711,6 +711,17 @@ class TestCadQuery(BaseTest): .consolidateWires() ) + def testSplineInputValidation(self): + + points = [(0, 0), (1, 1), (2, 0)] + tangents = [(0, 0.5), (1, 0), (0, -1), (-1, 0)] + + with raises(ValueError): + spline = ( + Workplane() + .spline(points, tangents=tangents) + ) + def testRotatedEllipse(self): def rotatePoint(x, y, alpha): # rotation matrix