fixed moveTest

This commit is contained in:
Kjistóf 2016-04-26 01:26:23 +02:00
parent f6bef6fdde
commit d75a05f998
3 changed files with 9 additions and 11 deletions

View File

@ -46,7 +46,5 @@ public class Menu {
break;
}
}
}
}

View File

@ -147,7 +147,7 @@ public class Tester {
boolean moveTest() throws IOException{
boolean success = true;
loadMap("moveTest");
loadMap("moveTest.dungeon");
String listOfPlayers = listPlayers();
if(!listOfPlayers.equals("ONeill: 1, 1 Jaffa: -666, -666 Replicator: -666, -666"))
@ -171,7 +171,7 @@ public class Tester {
boolean testStargates() throws IOException{
boolean success = true;
loadMap("testStargates");
loadMap("testStargates.dungeon");
shootONeillsGun("B");
rotate("O", "L");
shootONeillsGun("Y");
@ -200,7 +200,7 @@ public class Tester {
boolean testScalesAndGates() throws IOException {
boolean success = true;
loadMap("testScalesAndGates");
loadMap("testScalesAndGates.dungeon");
boxLift("O");
rotate("O", "L");
boxDrop("O");
@ -221,7 +221,7 @@ public class Tester {
@Test
boolean gapTest() throws IOException{
loadMap("gapTest");
loadMap("gapTest.dungeon");
move("O");
boolean success = oneill.isDestroyed();
@ -238,7 +238,7 @@ public class Tester {
boolean ZPMTest() throws IOException{
boolean success = true;
loadMap("ZPMTest");
loadMap("ZPMTest.dungeon");
move("O");
if(oneill.getZPMCount() != 1)
@ -289,7 +289,7 @@ public class Tester {
boolean rotationTest() throws IOException {
boolean success = true;
loadMap("rotationTest");
loadMap("rotationTest.dungeon");
if(!rotate("O", "L").equals("WEST"))
success = false;
@ -309,7 +309,7 @@ public class Tester {
boolean testBoxes() throws IOException{
boolean success = true;
loadMap("testBoxes");
loadMap("testBoxes.dungeon");
if(!boxLift("O").equals("box lifted"))
success = false;

View File

@ -1,8 +1,8 @@
5x5
W W W W W
W O F J W
W O F F W
W F F F W
W F F F W
W F R F W
W W W W W