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; break;
} }
} }
} }
} }

View File

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

View File

@ -1,8 +1,8 @@
5x5 5x5
W W W W W 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 F F W
W F R F W
W W W W W W W W W W