From ed5a7a9fe2fb6eb0aeab89ef8503fce1ba0857fb Mon Sep 17 00:00:00 2001 From: Thanh Le Date: Sun, 5 Nov 2023 11:45:32 +0100 Subject: [PATCH] Add castling test when both rooks at the queen side --- test-kit/src/test/scala/format/FenTest.scala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-kit/src/test/scala/format/FenTest.scala b/test-kit/src/test/scala/format/FenTest.scala index 7d53c470e..ac4bf42fc 100644 --- a/test-kit/src/test/scala/format/FenTest.scala +++ b/test-kit/src/test/scala/format/FenTest.scala @@ -60,3 +60,8 @@ class FenTest extends ChessTest: val fen = Fen.Epd("4k3/8/8/8/8/8/8/4K1RR w K - 0 1") val situation = Fen.read(Standard, fen).get assertEquals(situation.legalMoves.filter(_.castles), Nil) + + test("catsling rights with 2 rooks on the same side"): + val fen = Fen.Epd("4k3/8/8/8/8/8/8/RR2K3 w Q - 0 1") + val situation = Fen.read(Standard, fen).get + assertEquals(situation.legalMoves.filter(_.castles), Nil)