mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-06-27 11:44:42 +02:00
removed the the update respawn location of the robot from the function
This commit is contained in:
@ -65,7 +65,7 @@ public class RobotTest {
|
||||
|
||||
@Test
|
||||
public void testRobotGetNewFlag() {
|
||||
testRobot.setLastFlagVisitedAndUpdateBackupPosition(nextFlag);
|
||||
testRobot.setLastFlagVisited(nextFlag);
|
||||
assertEquals(1, testRobot.getLastFlagVisited());
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ public class RobotTest {
|
||||
public void testRobotGetNewBackup() {
|
||||
Position nextFlagPosition = new Position(3, 4);
|
||||
testRobot.setPosition(nextFlagPosition);
|
||||
testRobot.setLastFlagVisitedAndUpdateBackupPosition(nextFlag);
|
||||
testRobot.setLastFlagVisited(nextFlag);
|
||||
assertEquals(nextFlagPosition, testRobot.getBackupPosition());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user