A test case with errors will look like this.
CASE: Bad input file name.
This case will test for input file name correctness.
CASE BEGINS
------------------------------------------------------------------------------
2c2
< Error! could not open FileThatDoesNotExist.
---
< Error, could not open FileThatDoesNotExist.
4c4
< Error! could not open A_Second_File_That_Does_Not_Exist.
---
< Error, could not open A_Second_File_That_Does_Not_Exist.
6c6
< Error! could not open badFile.dat.
---
< Error, could not open badFile.dat.
------------------------------------------------------------------------------
- In the case, the program failed to produce the correct error message. The student's program (indicated by lines with <) printed Error! while the specification (indicated by lines with >) requested Error.