Add a simple test

This commit is contained in:
Jens Kutilek 2019-12-18 11:09:23 +01:00
parent b858f7bb3e
commit 67da54fb5f

View File

@ -187,6 +187,17 @@ class BuilderTest(unittest.TestCase):
" sub A from [A.alt1 A.alt2];"
"} test;")
def test_singleSubst_multipleIdenticalSubstitutionsForSameGlyph_info(self):
logger = logging.getLogger("fontTools.feaLib.builder")
with CapturingLogHandler(logger, "INFO") as captor:
self.build(
"feature test {"
" sub A by A.sc;"
" sub B by B.sc;"
" sub A by A.sc;"
"} test;")
captor.assertRegex('Removing duplicate single substitution from glyph "A" to "A.sc"')
def test_multipleSubst_multipleSubstitutionsForSameGlyph(self):
self.assertRaisesRegex(
FeatureLibError,