summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-03-07 11:15:45 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-03-07 11:15:45 +0100
commit16f2c013278cec056b7a164e9c0e491c32912d90 (patch)
tree03f0bb0089fc02c72ba8cc179908244736e936aa /tests
parentadaec1ba1442d093dd788bb3f7512162257de157 (diff)
Debug en passant capture
Diffstat (limited to 'tests')
-rw-r--r--tests/chessarbiter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp
index 94d4dae..0682979 100644
--- a/tests/chessarbiter.cpp
+++ b/tests/chessarbiter.cpp
@@ -406,12 +406,14 @@ TEST_CASE("SimpleEnPassant", "[SimpleEnPassant]") {
CHECK(a.Play("e5f6"));
CHECK(a.GetFEN() ==
"rnbqkbnr/ppppp1pp/5P2/8/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2");
+ CHECK(a.GetCapture() == 'p');
// Black capture
a.Setup("rnbqkbnr/ppppp1pp/8/8/4Pp2/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1");
CHECK(a.Play("f4e3"));
CHECK(a.GetFEN() ==
"rnbqkbnr/ppppp1pp/8/8/8/4p3/PPPP1PPP/RNBQKBNR w KQkq - 0 2");
+ CHECK(a.GetCapture() == 'P');
// Check en_passant is set
a.Setup(