def test_cubic_line_2(self):
     s1 = CubicBezier.fromRepr(
         "B<<584.0,126.03783241124995>-<402.0,163.0378324112499>-<220.00000000000003,200.03783241124995>-<38.0,237.03783241124995>>"
     ),
     ray = Line.fromRepr(
         "L<<357.4,-9.99999999999999>--<357.6,250.2692949284206>>")
     assert (s1[0].intersections(ray))
 def test_cubic_line_3(self):
     seg = CubicBezier.fromRepr(
         "B<<320.0,454.0>-<277.0,454.0>-<230.0,439.0>-<189.0,417.0>>")
     ray = Line.fromRepr(
         "L<<254.5,221.5>--<254.5000000000001,887.6681469418963>>")
     assert seg.intersections(ray)