diff --git a/test-kit/src/test/scala/format/SmallFenTest.scala b/test-kit/src/test/scala/format/SmallFenTest.scala index 58781d150..0f171eece 100644 --- a/test-kit/src/test/scala/format/SmallFenTest.scala +++ b/test-kit/src/test/scala/format/SmallFenTest.scala @@ -13,16 +13,25 @@ class SmallFenTest extends ChessTest: SmallFen.make(Standard, Fen.Simple("rnbqkb1r/ppp1pppp/3p4/3nP3/3P4/5N2/PPP2PPP/RNBQKB1R b KQkq -")), SmallFen("rnbqkb1rppp1pppp3p43nP33P45N2PPP2PPPRNBQKB1RbKQkq") ) + + test("standard, skip w, b6 en passant"): + assertEquals( + SmallFen.make(Standard, Fen.Simple("8/8/p1k2nB1/Pp1np3/1PK4P/8/3B4/8 w - b6")).pp.garbageInefficientReadBackIntoFen, + SimpleFen("8/8/p1k2nB1/Pp1np3/1PK4P/8/3B4/8 w - b6") + ) + test("make standard correct, skip w"): assertEquals( SmallFen.make(Standard, Fen.Simple("rnbqkb1r/ppp1pppp/3p4/3nP3/3P4/5N2/PPP2PPP/RNBQKB1R w KQkq -")), SmallFen("rnbqkb1rppp1pppp3p43nP33P45N2PPP2PPPRNBQKB1RKQkq") ) + test("make standard correct, non-initial castling"): assertEquals( SmallFen.make(Standard, Fen.Simple("rnbqkb1r/ppp1pppp/3p4/3nP3/3P4/5N2/PPP2PPP/RNBQKB1R w Qq -")), SmallFen("rnbqkb1rppp1pppp3p43nP33P45N2PPP2PPPRNBQKB1RQq") ) + test("make standard correct, en passant"): assertEquals( SmallFen @@ -144,7 +153,7 @@ class SmallFenTest extends ChessTest: "k7/2K5/8/2B5/8/p7/P7/8 b - -", "1k6/1P6/1K6/2P5/8/8/8/8 b - -", "8/8/5R2/8/8/8/7p/5K1k b - -", - "8/8/8/8/8/5p2/5K1p/7k b - -" + "8/8/8/8/8/5p2/5K1p/7k b - -", ).foreach: fen => assertEquals( toFen(SmallFen.make(Standard, Fen.Simple(fen)).value),