[feaLib] Clean up lexer test for handling comments
https://github.com/fonttools/fonttools/issues/829
This commit is contained in:
parent
bc0670f53f
commit
4210c9d2d6
@ -79,10 +79,7 @@ class LexerTest(unittest.TestCase):
|
|||||||
lex("foo - -2"),
|
lex("foo - -2"),
|
||||||
[(Lexer.NAME, "foo"), (Lexer.SYMBOL, "-"), (Lexer.NUMBER, -2)])
|
[(Lexer.NAME, "foo"), (Lexer.SYMBOL, "-"), (Lexer.NUMBER, -2)])
|
||||||
|
|
||||||
#def test_comment(self):
|
def test_comment(self):
|
||||||
# self.assertEqual(lex("# Comment\n#"), [])
|
|
||||||
|
|
||||||
def test_comment_kept(self):
|
|
||||||
self.assertEqual(lex("# Comment\n#"),
|
self.assertEqual(lex("# Comment\n#"),
|
||||||
[(Lexer.COMMENT, "# Comment"), (Lexer.COMMENT, "#")])
|
[(Lexer.COMMENT, "# Comment"), (Lexer.COMMENT, "#")])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user