Skip to content

Commit

Permalink
Add castling test when both rooks at the queen side
Browse files Browse the repository at this point in the history
  • Loading branch information
lenguyenthanh committed Nov 5, 2023
1 parent 84f29d2 commit 29c7eb5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-kit/src/test/scala/format/FenTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 29c7eb5

Please sign in to comment.