diff --git a/cicaprojekt/Tester.java b/cicaprojekt/Tester.java index 17b095a..c42a098 100644 --- a/cicaprojekt/Tester.java +++ b/cicaprojekt/Tester.java @@ -155,7 +155,7 @@ public class Tester { String[] expectedOutputs = {}; - return testOnSequenceOfCommands(commands, expectedOutputs); + boolean results = testOnSequenceOfCommands(commands, expectedOutputs); System.out.print("testExtraZPMs: "); if(results) @@ -230,7 +230,7 @@ public class Tester { return results; } - + @Test boolean timeUpTest(){ String[] commands = {"loadMap timeUpTest\n"}; @@ -247,19 +247,33 @@ 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!"); - return results; + return results; } }