Add a comment to describe new testcase

This commit is contained in:
Kaustubh Khavnekar
2024-10-14 22:32:39 -04:00
parent 66361cc5be
commit 4d1aa8fd36
+12
View File
@@ -290,6 +290,12 @@ the players are also trying to learn as much as possible about the opponent's pr
);
});
/// Test for scenario where
/// a. '{' is the last character on a line
/// b. a '}' character appears somewhere before the '{' on that same line
/// (line 22 of wcc_2023_eolcomment.pgn)
///
/// This tests a fix which avoids an infinite loop in the described scenario.
test('pgn file - WCC 2023 - comment before newline', () {
final String data =
File('./data/wcc_2023_eolcomment.pgn').readAsStringSync();
@@ -297,6 +303,12 @@ the players are also trying to learn as much as possible about the opponent's pr
expect(games.length, 3);
});
/// Test for scenario where
/// a. '{' is the last character on a line
/// b. a '}' character appears somewhere before the '{' on that same line
/// (line 22 of wcc_2023_eolcomment.pgn)
///
/// This tests a fix which avoids an infinite loop in the described scenario.
test('pgn file - kasparov-deep-blue-1997', () {
final String data =
File('./data/kasparov-deep-blue-1997.pgn').readAsStringSync();