Tester.java fixed

This commit is contained in:
ericnerdo 2016-04-26 01:02:01 +02:00
parent 651069d762
commit 88f2c3103f

View File

@ -198,11 +198,7 @@ public class Tester {
@Test
boolean testScalesAndGates() throws IOException {
<<<<<<< HEAD
boolean succes = true;
=======
boolean success = true;
>>>>>>> cica
loadMap("testScalesAndGates");
boxLift("O");
@ -212,11 +208,7 @@ public class Tester {
String gateOpen = getConnectedGateOpen((Scale)oneill.getCurrentTile().getAdjacentTile(oneill.facingDirection));
if(!gateOpen.equals("gate open"))
<<<<<<< HEAD
succes = false;
=======
success = false;
>>>>>>> cica
System.out.print("testScalesAndGates: ");
if(success)
@ -291,15 +283,7 @@ public class Tester {
return results;
}
<<<<<<< HEAD
@Test
boolean rotationTest() {
String[] commands = {"loadMap rotationTest\n",
"Rotate O L\n",
"Rotate O R\n"};
=======
>>>>>>> cica
@Test
boolean rotationTest() throws IOException {
@ -314,28 +298,6 @@ public class Tester {
success = false;
System.out.print("rotationTest: ");
<<<<<<< HEAD
return true; //TODO check this
}
@Test
boolean testBoxes(){
boolean succes = true;
if(!boxLift("O").equals("box lifted"))
succes = false;
if(!boxDrop("O").equals("box dropped"))
succes = false;
System.out.print("testBoxes: ");
if(succes)
System.out.println("Sikeres!");
else System.out.println("Sikertelen!");
return succes;
=======
if(success)
System.out.println("Sikeres!");
else System.out.println("Sikertelen!");
@ -361,7 +323,6 @@ public class Tester {
else System.out.println("Sikertelen!");
return success;
>>>>>>> cica
}
private boolean testOnSequenceOfCommands(String[] commands, String[] expectedOutputs) {