From b9d3ec7b3cbdb67b06aca61de811a6823e87d4c7 Mon Sep 17 00:00:00 2001 From: Kaustubh Khavnekar Date: Mon, 14 Oct 2024 22:34:36 -0400 Subject: [PATCH] Attach comment to correct testcases --- test/pgn_test.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/pgn_test.dart b/test/pgn_test.dart index 720ec16..ce9be5b 100644 --- a/test/pgn_test.dart +++ b/test/pgn_test.dart @@ -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(); @@ -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();