Question: help unlock test case public void test ( ) throws IOException { / / Look at the assignment handout where it gives ropen and copen

help unlock test case public void test() throws IOException {
// Look at the assignment handout where it gives ropen and copen
// as matrices of zeros and ones. We will write them without spaces, e.g.
// ropen 1010 copen 101
//1111100
//011
// Remember that 1= open, 0= closed.
// But here we use a different example, which is wider by one column
//(and so ropen and copen will be longer too)
maze.read(toBR(
"+-+-+-+-++",
"|||",
"+++-+-++",
"|||",
"+-+-++-++",
"||",
"+-+-+-+-+-+"));
assertEquals("11001",getMazeOpen(true,0)); // what is ropen's first row?
assertEquals("00101",getMazeOpen(true,1)); // what is ropen's second row?
assertEquals("0111",getMazeOpen(false,0)); // what is copen's first row?
assertEquals(???,getMazeOpen(false,1)); // what is copen's second row?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!