From 3b6511d97f834b9459462320744bb4b05b140f46 Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Sun, 18 Dec 2011 07:07:15 +0000 Subject: [PATCH] DroidFishTest: Don't use an illegal position in testPawnMoves(). --- .../src/org/petero/droidfish/gamelogic/MoveGenTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DroidFishTest/src/org/petero/droidfish/gamelogic/MoveGenTest.java b/DroidFishTest/src/org/petero/droidfish/gamelogic/MoveGenTest.java index 556698f..9f1db3c 100644 --- a/DroidFishTest/src/org/petero/droidfish/gamelogic/MoveGenTest.java +++ b/DroidFishTest/src/org/petero/droidfish/gamelogic/MoveGenTest.java @@ -82,7 +82,7 @@ public class MoveGenTest extends TestCase { * Test of pseudoLegalMoves method, of class MoveGen. Pawn moves. */ public void testPawnMoves() throws ChessParseError { - String fen = "1r2k3/P1pppp1p/8/1pP3p1/1nPp2P1/n4p1P/1P2PP2/4KBNR w K b6 0 1"; + String fen = "1r2k3/P1pppp2/8/1pP3p1/1nPp2P1/n4p1P/1P2PP2/4KBNR w K b6 0 1"; Position pos = TextIO.readFEN(fen); assertEquals(fen, TextIO.toFEN(pos)); List strMoves = getMoveList(pos, false); @@ -107,7 +107,7 @@ public class MoveGenTest extends TestCase { assertTrue(strMoves.contains("d4-d3")); assertTrue(strMoves.contains("e7-e6")); assertTrue(strMoves.contains("e7-e5")); - assertEquals(28, strMoves.size()); + assertEquals(26, strMoves.size()); // Check black pawn promotion pos.setPiece(Position.getSquare(0,1), Piece.BPAWN);