Skip to content

Commit 2993017

Browse files
committed
Beware. Lots of testcases will fail from now on because in addition to requiring the right parse tree we also require the right amount of errors. Testcases will be fixed in due course.
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40383
1 parent 930e145 commit 2993017

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def runParserTest(self, input, output, errors):
5555
convertTreeDump(document.printTree())])
5656
self.assertEquals(output, convertTreeDump(document.printTree()),
5757
errorMsg)
58+
errorMsg2 = "\n".join(["\n\nInput errors: " + str(len(errors)),
59+
"Actual errors: " + str(len(p.errors))])
60+
self.assertEquals(len(p.errors), len(errors), errorMsg2)
5861

5962
def test_parser():
6063
for filename in glob.glob('tree-construction/*.dat'):

0 commit comments

Comments
 (0)