aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-01-25 14:53:34 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-01-25 14:53:34 +0100
commit2e30eaccb106d806ccb64514bf6317af78c56c10 (patch)
tree59df88dc4efb2271911d06d66161c010240589e6 /tests
parentd4df0dac1d8d05bc260c666ede6f732d5d23a803 (diff)
Improve parser
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 551e9d4..f376f33 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -58,6 +58,7 @@ TEST_CASE("Valid PGN", "[valid/pgn1]") {
CHECK_THROWS_AS(pgn.GetTagValue("InvalidTagName"), InvalidTagName);
}
+ CHECK(m_backup->GetHalfMoveAt(4)->move == "c4");
CHECK(pgn.GetResult() == "*");
}
@@ -69,6 +70,8 @@ TEST_CASE("Valid PGN", "[valid/pgn2]") {
pgn.GetMoves(m);
REQUIRE(m->GetLength() == 66);
CHECK(pgn.GetResult() == "0-1");
+ CHECK(m->comment == " A00 Hungarian Opening ");
+ CHECK(m->GetHalfMoveAt(7)->comment == " (0.22 → 0.74) Inaccuracy. dxc4 was best. ");
}
TEST_CASE("Seven Tag Roster", "[std/pgn1]") {