Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Jan 28, 2024
1 parent 50f732e commit 32f8674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/jchess/el/v2/RotationsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import jchess.gamemode.IPieceLayoutProvider;
import jchess.gamemode.PieceStore;
import jchess.gamemode.square2p.Square2PlayerGame;
import jchess.gamemode.square2p.Square2pPieces;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

Expand All @@ -25,7 +26,7 @@ void test_rotations() {
TileExpression.repeat(TileExpression.neighbor(270), 1, 2, true)
);

Square2pBoardProvider square2pProvider = new Square2pBoardProvider(null, null);
Square2pBoardProvider square2pProvider = new Square2pBoardProvider(new PieceStore(Square2pPieces.values()), null);
square2pProvider.generateBoard();
Entity originTile = square2pProvider.getEntityAtPosition(3, 3);
square2pProvider.createPiece(originTile, PieceType.PAWN, 0);
Expand Down

0 comments on commit 32f8674

Please sign in to comment.