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)