diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:18:23 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-01-10 16:18:23 +0100 |
| commit | 6f48becb9186a399e3a4dddb778570e7057752c7 (patch) | |
| tree | 64d8e53f3c1823ab496de1cfe532429a50842216 /tests/chessarbiter.cpp | |
| parent | 9e8b8d630cdf7dfafdd0a37bb095b4e4afe10478 (diff) | |
Improve pawn promotion API
Diffstat (limited to 'tests/chessarbiter.cpp')
| -rw-r--r-- | tests/chessarbiter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp index a2b3fc0..3ac95ca 100644 --- a/tests/chessarbiter.cpp +++ b/tests/chessarbiter.cpp @@ -478,16 +478,19 @@ TEST_CASE("Specific bugs found on a game", "[BugFixes]") { a.Setup("1k3r1r/npqbbp2/4p1p1/p2pPnNp/1P3B1P/P1PB4/5PPQ/RN2R1K1 w - - 1 19"); a.Play("e1c1"); CHECK(a.GetFEN() == "1k3r1r/npqbbp2/4p1p1/p2pPnNp/1P3B1P/P1PB4/5PPQ/RNR3K1 b - - 2 19"); + CHECK(!a.WasPawnPromotion()); // BUG 2 (Promotion) a.Setup("8/k2P4/2p1ppp1/5qBp/5P1P/8/6PK/8 w - - 0 45"); a.Play("d7d8"); CHECK(a.GetFEN() == "3Q4/k7/2p1ppp1/5qBp/5P1P/8/6PK/8 b - - 0 45"); + CHECK(a.WasPawnPromotion()); // 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()); // BUG 4 (Promotion) char p=a.ParseSANPromotion("d8=Q"); |
