boolean gapTest() added to Tester
This commit is contained in:
		@@ -100,7 +100,6 @@ public class Tester {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @Test
 | 
					    @Test
 | 
				
			||||||
<<<<<<< 68c0dd96e3304b4048de58acf99e10ab3da9abd5
 | 
					 | 
				
			||||||
    boolean extraZPM(){
 | 
					    boolean extraZPM(){
 | 
				
			||||||
        String[] commands = {"loadMap testExtraZPMs\n",
 | 
					        String[] commands = {"loadMap testExtraZPMs\n",
 | 
				
			||||||
                "listZPMs\n",
 | 
					                "listZPMs\n",
 | 
				
			||||||
@@ -112,14 +111,14 @@ public class Tester {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        return testOnSequenceOfCommands(commands, expectedOutputs);
 | 
					        return testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
=======
 | 
					
 | 
				
			||||||
    boolean testScalesAndGates(){
 | 
					    boolean testScalesAndGates(){
 | 
				
			||||||
        String[] commands = {"loadMap testScalesAndGates\n",
 | 
					        String[] commands = {"loadMap testScalesAndGates\n",
 | 
				
			||||||
                             "boxLift O\n",
 | 
					                             "boxLift O\n",
 | 
				
			||||||
                             "rotate O L\n",
 | 
					                             "rotate O L\n",
 | 
				
			||||||
                             "boxDrop O\n"};
 | 
					                             "boxDrop O\n"};
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        String[] expectedOutputs = {"door open"};
 | 
					        String[] expectedOutputs = {"door open\n"};
 | 
				
			||||||
        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
					        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        System.out.print("testScalesAndGates: ");
 | 
					        System.out.print("testScalesAndGates: ");
 | 
				
			||||||
@@ -130,5 +129,21 @@ public class Tester {
 | 
				
			|||||||
        return results;
 | 
					        return results;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
>>>>>>> boolean testScalesAndGates() added to Tester
 | 
					    boolean gapTest(){
 | 
				
			||||||
 | 
					        String[] commands = {"loadMap gapTest\n",
 | 
				
			||||||
 | 
					                             "move O\n"};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        String[] expectedOutputs = {};
 | 
				
			||||||
 | 
					        boolean results = testOnSequenceOfCommands(commands, expectedOutputs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        System.out.print("gapTest: ");
 | 
				
			||||||
 | 
					        if(results)
 | 
				
			||||||
 | 
					            System.out.println("Sikeres!");
 | 
				
			||||||
 | 
					        else System.out.println("Sikertelen!");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return results;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user