another test to check that empty lookups blocks are skipped

This commit is contained in:
Cosimo Lupo 2021-04-26 10:07:36 +01:00
parent 9b5bc9e18b
commit 2830260a01

View File

@ -829,6 +829,15 @@ class BuilderTest(unittest.TestCase):
"} test;")
captor.assertRegex('Already defined position for pair A V at')
def test_ignore_empty_lookup_block(self):
# https://github.com/fonttools/fonttools/pull/2277
font = self.build(
"lookup EMPTY { ; } EMPTY;"
"feature ss01 { lookup EMPTY; } ss01;"
)
assert "GPOS" not in font
assert "GSUB" not in font
def generate_feature_file_test(name):
return lambda self: self.check_feature_file(name)