Skip to content

Commit

Permalink
Bug found when parse_anchor returns None
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Aug 18, 2022
1 parent 7f2a527 commit b8b5c8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/feaLib/parser_test.py
Expand Up @@ -2081,6 +2081,10 @@ def test_ufo_features_parse_include_dir(self):
doc = Parser(fea_path, includeDir=include_dir).parse()
assert len(doc.statements) == 1 and doc.statements[0].text == "# Nothing"

def test_markclass_format_D(self):
flag = self.parse("markClass A <anchor NULL> @top;")
self.assertEqual(flag.asFea(), "markClass A <anchor NULL> @top;")

def parse(self, text, glyphNames=GLYPHNAMES, followIncludes=True):
featurefile = StringIO(text)
p = Parser(featurefile, glyphNames, followIncludes=followIncludes)
Expand Down

0 comments on commit b8b5c8d

Please sign in to comment.