summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/chessarbiter.cpp10
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");
+}