From 779cf4f082343da894da89635127ae7bda22c657 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 10 Jan 2023 16:58:03 +0100 Subject: Debug pawns promotion --- tests/chessarbiter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp index 3ac95ca..a6ee016 100644 --- a/tests/chessarbiter.cpp +++ b/tests/chessarbiter.cpp @@ -485,12 +485,14 @@ TEST_CASE("Specific bugs found on a game", "[BugFixes]") { a.Play("d7d8"); CHECK(a.GetFEN() == "3Q4/k7/2p1ppp1/5qBp/5P1P/8/6PK/8 b - - 0 45"); CHECK(a.WasPawnPromotion()); + CHECK(a.GetSAN()=="d8=Q"); // BUG 3 (Promotion) a.Setup("8/k2P4/2p1ppp1/5qBp/5P1P/8/6PK/8 w - - 0 45"); a.Play("d7d8",'n'); CHECK(a.GetFEN() == "3N4/k7/2p1ppp1/5qBp/5P1P/8/6PK/8 b - - 0 45"); CHECK(a.WasPawnPromotion()); + CHECK(a.GetSAN()=="d8=N"); // BUG 4 (Promotion) char p=a.ParseSANPromotion("d8=Q"); -- cgit v1.2.3