There were six test cases for lab3. The general methodology was as follows:
Scripts were used to automate steps 1 and 2 above, and those are the steps responsible for the output from the ``scripted test cases''. The output for a given test case began with
*******Starting XXX test...
The two lines following that are the output from ``patch''.
Now here's the somewhat confusing part. If the code passed the test case, you will not see anything more; the output from the next case will immediately follow. If the test case failed, you may see output along the lines of
< Syntax error: char 0 = '\n'
---
> Input symbol: "\n"
> Input symbol: "a\n"
> Input symbol: "aa\n"
> Input symbol: "aaa\n"
Lines preceded by a '<' were produced by the program. Lines preceded by a '>' were what was expected from the program.
For each test case, the following files have been posted:
The pattern is also explicitly listed below.
Note that the input file begins with a blank line.
Note that the pattern above will not work as intended without the patch for ')'.