aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests.cpp')
-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]") {