diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-16 13:43:30 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-16 13:43:30 +0100 |
| commit | 94c2565647d84f31d5ccac0d88717aef29d4a9a1 (patch) | |
| tree | 4852e56188d1928b71424357f75e20a9cb5e8044 /tests | |
| parent | 62d7a030d23f4c0704dbf731f4f42b4e9e08e8b7 (diff) | |
Debug piece capture
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/chessarbiter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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"); +} |
