From 94c2565647d84f31d5ccac0d88717aef29d4a9a1 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Wed, 16 Feb 2022 13:43:30 +0100 Subject: Debug piece capture --- tests/chessarbiter.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests/chessarbiter.cpp') diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp index edee7f0..475816e 100644 --- a/tests/chessarbiter.cpp +++ b/tests/chessarbiter.cpp @@ -358,3 +358,13 @@ TEST_CASE("IsDrawByRepetitions", "[chessarbiter/IsDrawByRepetitions]") { a.Play("d6d7"); CHECK(a.IsDrawByRepetitions()); } + +TEST_CASE("SimpleCapture", "[SimplePieceCapture]") { + ChessArbiter a; + a.Setup("rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - 0 2"); + + // Ensure capture works + a.Play("e4d5"); + CHECK(a.GetFEN() == + "rnbqkbnr/ppp1pppp/8/3P4/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2"); +} -- cgit v1.2.3