added testBoxes test in Tester.java
This commit is contained in:
		@@ -155,7 +155,7 @@ public class Tester {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        String[] expectedOutputs = {};
 | 
					        String[] expectedOutputs = {};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return testOnSequenceOfCommands(commands, expectedOutputs);
 | 
					        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        System.out.print("testExtraZPMs: ");
 | 
					        System.out.print("testExtraZPMs: ");
 | 
				
			||||||
        if(results)
 | 
					        if(results)
 | 
				
			||||||
@@ -256,6 +256,20 @@ public class Tester {
 | 
				
			|||||||
        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
					        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        System.out.print("rotationTest: ");
 | 
					        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)
 | 
					        if(results)
 | 
				
			||||||
            System.out.println("Sikeres!");
 | 
					            System.out.println("Sikeres!");
 | 
				
			||||||
        else System.out.println("Sikertelen!");
 | 
					        else System.out.println("Sikertelen!");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user