From 2ea20f9572fefb59f6e5ec84b84d2a32b4c532aa Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 24 May 2024 10:35:24 -0600 Subject: [PATCH] [bezierTools] Add a test --- Tests/misc/bezierTools_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tests/misc/bezierTools_test.py b/Tests/misc/bezierTools_test.py index 4030f0704..6107a39df 100644 --- a/Tests/misc/bezierTools_test.py +++ b/Tests/misc/bezierTools_test.py @@ -206,6 +206,16 @@ def test_calcQuadraticArcLength(): ((242, 402), (242, 403), (242, 399), (242, 399)), # off by one unit 3.32098765445, ), + ( + # https://github.com/fonttools/fonttools/issues/3514 + ( + (626.9918761593156, 1000.0), + (639.133178223544, 1000.0), + (650.1152019577394, 1000.0), + (626.9918761593156, 1000.0), + ), # infinite recursion with Cython + 27.06159516422008, + ), ], ) def test_calcCubicArcLength(segment, expectedLength):