summaryrefslogtreecommitdiff
path: root/tests/chessarbiter.cpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-10 17:13:23 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-10 17:13:23 +0100
commit6ebd96825576b2da8e8acf2ac85d0b82a7531424 (patch)
tree7af1484cbf3a4b6529cabcbd94f0ed1d320c3f2c /tests/chessarbiter.cpp
parentdb78ff212da7abed937b03b120b1cf1afba2f37f (diff)
Add # sign to SAN moves when player is checkmate
Diffstat (limited to 'tests/chessarbiter.cpp')
-rw-r--r--tests/chessarbiter.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/chessarbiter.cpp b/tests/chessarbiter.cpp
index 931b545..1c013cc 100644
--- a/tests/chessarbiter.cpp
+++ b/tests/chessarbiter.cpp
@@ -524,4 +524,9 @@ TEST_CASE("Specific bugs found on a game", "[BugFixes]") {
a.Play("d6d3");
CHECK(!a.IsCheck(false));
CHECK(a.GetSAN()=="Qd3");
+
+ // Bug 7 SAN move that lead to checkmate must have a # sign on the SAN moves
+ a.Setup("rnb1k1nr/pppp1ppp/4P3/8/1b3B2/1Nq5/PPP1PPPP/R2KNB1R b kq - 16 12");
+ a.Play("c3e1");
+ CHECK(a.GetSAN()=="Qxe1#");
} \ No newline at end of file