hw3testing - <?xml version="1.0"...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
<?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Homework 3 Test Data</title> </head> <body> <h2>Homework 3 Test Data</h2> <p> For this homework, we graded Problems 2, 3, and 4. There were 51 test cases for Problem 2, worth 1 point each; 11 tests for Problem 4, worth 3 points each; and 4 tests for Problem 3, worth 4 points each. </p><p> We concatenated linear.cpp, tree.cpp, maze.cpp, and this file to run the tests: </p> <pre> #include <iostream> #include <streambuf> #include <string> #include <algorithm> #include <cstdlib> #include <cassert> using namespace std; void testone(int n) { static char maze1[10][10] = { { 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X' }, { 'X', '.', 'X', '.', '.', 'X', '.', '.', '.', 'X' }, { 'X', '.', 'X', 'X', '.', 'X', '.', 'X', 'X', 'X' }, { 'X', '.', '.', '.', '.', 'X', '.', 'X', '.', 'X' }, { 'X', 'X', '.', 'X', '.', 'X', '.', '.', '.', 'X' }, { 'X', 'X', 'X', '.', '.', 'X', '.', 'X', '.', 'X' }, { 'X', '.', '.', '.', 'X', '.', '.', '.', 'X', 'X' }, { 'X', '.', 'X', 'X', '.', '.', 'X', '.', 'X', 'X' }, { 'X', '.', '.', '.', '.', 'X', '.', '.', '.', 'X' }, { 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X' }, }; static char maze2[10][10] = { { 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'X' }, { 'X', '.', 'X', '.', '.', 'X', '.', '.', '.', 'X' }, { 'X', '.', 'X', 'X', '.', 'X', '.', 'X', 'X', 'X' }, { 'X', '.', '.', '.', '.', 'X', '.', 'X', '.', 'X' }, { 'X', 'X', '.', 'X', '.', 'X', '.', '.', '.', 'X' }, { 'X', 'X', 'X', '.', 'X', 'X', '.', 'X', '.', 'X' }, { 'X', '.', '.', '.', 'X', '.', '.', '.', 'X', 'X' }, { 'X', '.', 'X', 'X', '.', '.', 'X', '.', 'X', 'X' }, { 'X', '.', '.', '.', '.', 'X', '.', '.', '.', 'X' },
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

hw3testing - &lt;?xml version=&quot;1.0&quot;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online