From 17761cc61658e7ee872650ec36d9555a3f626abc Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 21 Jun 2023 14:57:08 -0600 Subject: [PATCH] [instancer/L4] Add tests --- Tests/varLib/instancer/solver_test.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Tests/varLib/instancer/solver_test.py b/Tests/varLib/instancer/solver_test.py index 205405d52..2740a10b0 100644 --- a/Tests/varLib/instancer/solver_test.py +++ b/Tests/varLib/instancer/solver_test.py @@ -262,6 +262,21 @@ class RebaseTentTest(object): (-1, (-1, -1, -0.0001220703)), ], ), + # https://github.com/fonttools/fonttools/issues/3177 + pytest.param( + (0, 1, 1), + (-1, -0.5, +1, 1, 1), + [ + (1.0, (1 / 3, 1.0, 1.0)), + ], + ), + pytest.param( + (0, 1, 1), + (-1, -0.5, +1, 2, 1), + [ + (1.0, (0.5, 1.0, 1.0)), + ], + ), ], ) def test_rebaseTent(self, tent, axisRange, expected):