boolean moveTest() was added to Test
This commit is contained in:
		@@ -51,4 +51,18 @@ public class Tester {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        return testspassed;
 | 
					        return testspassed;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    boolean moveTest(){
 | 
				
			||||||
 | 
					        String[] commands = {"loadMap movetest\n",
 | 
				
			||||||
 | 
					                             "listPlayers\n",
 | 
				
			||||||
 | 
					                             "move O",
 | 
				
			||||||
 | 
					                             "listPlayers\n"};
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        String[] expectedOutputs = {"ONeill: 1,1\n",
 | 
				
			||||||
 | 
					                                   "ONeill: 1,2\n"};
 | 
				
			||||||
 | 
					        
 | 
				
			||||||
 | 
					        return testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user