boolean moveTest() was added to Test
This commit is contained in:
parent
e8bdc59081
commit
9f5c310e12
@ -51,4 +51,18 @@ public class Tester {
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user