refactor gametest

This commit is contained in:
Andrin Fassbind
2022-03-24 18:33:29 +01:00
parent badec0d16f
commit 95ef0b9d76
3 changed files with 5 additions and 6 deletions
@@ -133,7 +133,7 @@ class GameTest {
@Test
void winner() {
game = new Game(new interFace("Test",new Integer[]{0,2,1},new PositionVector.Direction[]{RIGHT,
game = new Game(new interFace("Test",new Integer[]{0,2,0},new PositionVector.Direction[]{RIGHT,
RIGHT,
RIGHT,
NONE,
@@ -178,7 +178,7 @@ class GameTest {
@Test
void crashA() {
game = new Game(new interFace("Test",new Integer[]{0,2,2},new PositionVector.Direction[]{UP}));
game = new Game(new interFace("Test",new Integer[]{0,1,1},new PositionVector.Direction[]{UP}));
game.initPhase();
Assertions.assertEquals("b",game.gamePhase());
}
@@ -187,8 +187,8 @@ class GameTest {
private class interFace extends UserInterface {
private final PositionVector.Direction[] directions;
private final Integer[] instructions;
private PositionVector.Direction[] directions;
private Integer[] instructions;
private int pointerDir,pointerInstruction;