summaryrefslogtreecommitdiff
path: root/tests/chessarbiter.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-16 20:22:42 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-16 20:23:08 +0100
commit640d882099af0f7c13dc5e102943bb06c2df5400 (patch)
tree5e65b3e0e3ad434ad130222c855d88e48fc44610 /tests/chessarbiter.cpp
parent0584edb107467a294f17a50d063e667f22f4a47b (diff)
Cleaning arbiter:
- Add backup macros - User can fetch last captured piece
Diffstat (limited to 'tests/chessarbiter.cpp')
-rw-r--r--tests/chessarbiter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp
index 475816e..48e58fa 100644
--- a/tests/chessarbiter.cpp
+++ b/tests/chessarbiter.cpp
@@ -367,4 +367,5 @@ TEST_CASE("SimpleCapture", "[SimplePieceCapture]") {
a.Play("e4d5");
CHECK(a.GetFEN() ==
"rnbqkbnr/ppp1pppp/8/3P4/8/8/PPPP1PPP/RNBQKBNR b KQkq - 0 2");
+ CHECK(a.GetCapture()=='p');
}