Skip to content

Commit

Permalink
Attach comment to correct testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
KMK-Git committed Oct 15, 2024
1 parent 4d1aa8f commit b9d3ec7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/pgn_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,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('Parse initial game comments - comment before newline', () {
final String data =
File('./data/wcc_2023_eolcomment.pgn').readAsStringSync();
Expand Down Expand Up @@ -303,12 +309,6 @@ 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();
Expand Down

0 comments on commit b9d3ec7

Please sign in to comment.