fix ispassable

This commit is contained in:
2018-04-13 16:12:45 +02:00
parent 262e652dee
commit c0be2de7c1
3 changed files with 15 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ public class PartialPart2FacadeTest {
world = facade.createWorld(4.0, 4.0, passableMap);
}
@Test
@Test
public void testMaximumActionPoints() {
Worm worm = facade.createWorm(world, new double[] { 1, 2 }, 0, 1, "Test", null);
assertEquals(4448, facade.getMaxNbActionPoints(worm));
@@ -48,7 +48,7 @@ public class PartialPart2FacadeTest {
assertEquals(2, xy[1], EPS);
}
@Test
@Test
public void testMoveVertical() {
Worm worm = facade.createWorm(world, new double[] { 1, 1.5 }, Math.PI / 2, 0.5, "Test", null);
facade.move(worm);
@@ -56,8 +56,7 @@ public class PartialPart2FacadeTest {
assertEquals(1, xy[0], EPS);
assertEquals(2.0, xy[1], EPS);
}
@Test
@Test
public void testFall() {
// . X .
// . w .