From 27fb1889cfaca42dc18d3dbf97741aefdd95c95d Mon Sep 17 00:00:00 2001 From: Erez Shinan Date: Tue, 31 Oct 2017 16:14:02 +0200 Subject: [PATCH] Added test --- tests/test_parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_parser.py b/tests/test_parser.py index 76a6a33..ce25873 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -956,6 +956,9 @@ def _make_parser_test(LEXER, PARSER): tree = parser.parse("int 1 ! This is a comment\n") self.assertEqual(tree.children, ['1']) + tree = parser.parse("int 1 ! This is a comment") # A trailing ignore token can be tricky! + self.assertEqual(tree.children, ['1']) + _NAME = "Test" + PARSER.capitalize() + (LEXER or 'Scanless').capitalize()