From 4210c9d2d64e75075016d8dae2daf2623a8243ab Mon Sep 17 00:00:00 2001 From: Sascha Brawer Date: Thu, 9 Mar 2017 15:19:19 +0100 Subject: [PATCH] [feaLib] Clean up lexer test for handling comments https://github.com/fonttools/fonttools/issues/829 --- Tests/feaLib/lexer_test.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Tests/feaLib/lexer_test.py b/Tests/feaLib/lexer_test.py index d1135d418..bb95a5b48 100644 --- a/Tests/feaLib/lexer_test.py +++ b/Tests/feaLib/lexer_test.py @@ -79,13 +79,10 @@ class LexerTest(unittest.TestCase): lex("foo - -2"), [(Lexer.NAME, "foo"), (Lexer.SYMBOL, "-"), (Lexer.NUMBER, -2)]) - #def test_comment(self): - # self.assertEqual(lex("# Comment\n#"), []) - - def test_comment_kept(self): + def test_comment(self): self.assertEqual(lex("# Comment\n#"), [(Lexer.COMMENT, "# Comment"), (Lexer.COMMENT, "#")]) - + def test_string(self): self.assertEqual(lex('"foo" "bar"'), [(Lexer.STRING, "foo"), (Lexer.STRING, "bar")])