From 16f2c013278cec056b7a164e9c0e491c32912d90 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 7 Mar 2022 11:15:45 +0100 Subject: Debug en passant capture --- tests/chessarbiter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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( -- cgit v1.2.3