mirror of
https://github.com/lichess-org/dartchess.git
synced 2026-05-26 13:51:01 +00:00
Add a comment to describe new testcase
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user