1
0
mirror of https://github.com/inf112-v20/Fiasko.git synced 2025-07-05 07:34:43 +02:00

Endrer en test så den tester det den skal

Co-Authored-By: gabrielmagnus <gabrielmagnus@users.noreply.github.com>
This commit is contained in:
torlunjen
2020-04-23 10:58:58 +02:00
parent 1fc45c98dc
commit 1f31f66c70
2 changed files with 3 additions and 2 deletions
src/test
java
inf112
fiasko
roborally
resources

@ -472,6 +472,7 @@ public class PhaseTest {
Phase testPhase = createPhaseAndLoadBoard(players, robots); Phase testPhase = createPhaseAndLoadBoard(players, robots);
testPhase.moveAllConveyorBelts(); testPhase.moveAllConveyorBelts();
assertNull(board.getRobotOnPosition(new Position(0, 0))); assertTrue(board.isRobotAlive(RobotID.ROBOT_1));
assertEquals(RobotID.ROBOT_1, board.getRobotOnPosition(new Position(0, 0)));
} }
} }

@ -11,7 +11,7 @@
01;01 07;03 07;01 01;01 11;01 05;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 07;03 07;01 01;01 11;01 05;01 01;01 01;01 01;01 01;01 01;01 01;01
01;01 01;01 01;01 01;01 11;01 05;01 01;01 05;03 01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 11;01 05;01 01;01 05;03 01;01 01;01 01;01 01;01
01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 05;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 01;01 05;01 01;01 01;01 01;01
1;5 0 0 0 0 0 0 0 0 0 0 0 1;1 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0