csc 148 Test cases for assignment 2 Spring 1996 =========================================================================== There were a total of 54 test cases. Rather than list the cases themselves, which would be very long, below is a summary of what each case tested. See Diane if you require more information. Students' results on these were worth a total of 10 marks. Line 1 & 2 errors: (2 marks) (Test cases 1-14) ---------------------------- Line 1: (Test cases 1-7) * Blank first line with valid data following - "Line 1 ..." * Dimensions of 0x0 with valid data following - "Line 1 ..." * Dimension of 4x0 with valid data following - "Line 1 ..." * Dimension of "4" with valid data following - "Line 1 ..." * Dimension of 4x4 with extra non-space characters at the end. - "Line 1 ..." * Dimension of 4x4 with non-space characters between integers. - "Line 1 ..." * No first line (empty file) - "Too few lines" Line 2: (Test cases 8-14) * Blank second line with valid data followng - "Line 2 ..." * Entrance of 0x0 - "Line 2 ..." * Entrance of 4x0 - "Line 2 ..." * Entrance of "4" - "Line 2 ..." * Entrance of 4x4 with extra non-space characters at the beginnning. - "Line 2 ..." * Entrance of 4x4 with non-space characters between integers. - "Line 2 ..." * No second line (just the first line) - "Too few lines" Lines 3+: (3 marks) (Test cases 15-24) ------------------- * A blank line in the middle - "Line n does not consist..." * A line with too many bits in it. - "Line n does not consist..." * A line with too few bits on it. - "Line n does not consist..." * Correct length line but with a non-bit character. - "Line n contains..." * Incorrect length with a space before a valid bit string. - "Line n contains..." - "Line n does not consist..." * Incorrect length with a space after a valid bit string. - "Line n contains..." - "Line n does not consist..." * Missing lines" - "Too few lines" * Additional lines" - Too many lines" Examples from the handout: (3 marks) (Test cases 25-30) ------------------------------------ * Three positive examples of well-formed. - "The input is a well-formed rectangular maze." * Three negative examples of well-formed. - "The input is not a well-formed rectangular maze." Correctly formatted examples: (2 marks) (Test cases 31-44) --------------------------------------- These just need to be accepted as correctly formatted. They also provide feedback to markers. - "The input is a well-formed rectangular maze." - "The input is not a well-formed rectangular maze." * Valid input with one space between line 1 integers * Valid input with many spaces between line 1 integers * Valid input with many spaces between line 2 integers * Entrance outside of maze boundaries. * One black square. * Add an entrance to the example without one. * Remove an entrance from the example with two. Other correctly formatted examples [Just feedback to the markers] ---------------------------------- (Test cases 45-54) * Entrance on white corner. * Entrance on top edge. * Entrance not on boundary. * Entrance not on a space (but on a boundary). * 4x1 example: BWBB * white corner.