added testBoxes test in Tester.java
This commit is contained in:
parent
41b132df46
commit
56c58ffcde
@ -155,7 +155,7 @@ public class Tester {
|
||||
|
||||
String[] expectedOutputs = {};
|
||||
|
||||
return testOnSequenceOfCommands(commands, expectedOutputs);
|
||||
boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
|
||||
|
||||
System.out.print("testExtraZPMs: ");
|
||||
if(results)
|
||||
@ -247,15 +247,29 @@ public class Tester {
|
||||
}
|
||||
|
||||
@Test
|
||||
boolean rotationTest(){
|
||||
boolean rotationTest() {
|
||||
String[] commands = {"loadMap rotationTest\n",
|
||||
"Rotate O L\n",
|
||||
"Rotate O R\n"};
|
||||
"Rotate O L\n",
|
||||
"Rotate O R\n"};
|
||||
|
||||
String[] expectedOutputs = {};
|
||||
boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
|
||||
|
||||
System.out.print("rotationTest: ");
|
||||
}
|
||||
|
||||
@Test
|
||||
boolean testBoxes(){
|
||||
String[] commands = {"loadMap testBoxes\n",
|
||||
"boxLift\n",
|
||||
"boxDrop\n"};
|
||||
|
||||
String[] expectedOutputs = {"boc3 lifted\n",
|
||||
"box3 dropped\n"};
|
||||
|
||||
boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
|
||||
|
||||
System.out.print("testBoxes: ");
|
||||
if(results)
|
||||
System.out.println("Sikeres!");
|
||||
else System.out.println("Sikertelen!");
|
||||
|
Loading…
Reference in New Issue
Block a user