Monday, October 14, 2013

Encoder Testing – Program Output

Now that encoder testing is inserting the input test lines into an actual program model, it would be helpful to know if the lines are being inserted correctly.  The encoded line is output after each input line, and while this is extracted from the program model, it is not known if the lines are actually in the correct location within the program.

The offset and size could have been added to the output line, but this is insufficient for testing if lines are replaced and removed correctly.  These operations have not been implemented yet, but will be shortly.  Therefore, at the end of testing, all of the lines currently in the program model are output.  If a line contains an error, the column, length and message of the error are output.

Included in the output is the index number of the line, the offset range of the line to verify that lines are inserted in the correct place with no gaps between lines, and the debug text output for the line.  Blank lines take no space in the program code and so no offset range, so only the offset is output.  The offset is needed in case the blank line is replaced.  The expected results for encoder test #1 were updated for the new output.

[commit 96060db9b7]

No comments:

Post a Comment

All comments and feedback welcomed, whether positive or negative.
(Anonymous comments are allowed, but comments with URL links or unrelated comments will be removed.)