[instancer/L4] Add tests

This commit is contained in:
Behdad Esfahbod 2023-06-21 14:57:08 -06:00
parent 204532aee3
commit 17761cc616

View File

@ -262,6 +262,21 @@ class RebaseTentTest(object):
(-1, (-1, -1, -0.0001220703)), (-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): def test_rebaseTent(self, tent, axisRange, expected):