From 26a99cd75f1c2100207a75fa59f97db4a754588a Mon Sep 17 00:00:00 2001 From: Guido Petri <18634426+guidopetri@users.noreply.github.com> Date: Sun, 21 Apr 2024 18:33:35 -0500 Subject: [PATCH] improve clocks visitor test --- tests/test_visitors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_visitors.py b/tests/test_visitors.py index d45fded..6cc44d4 100644 --- a/tests/test_visitors.py +++ b/tests/test_visitors.py @@ -23,7 +23,7 @@ def test_evals_visitor(): def test_clocks_visitor(): pgn = """[Site "https://lichess.org/TTYLmSUX"] -1. e4 { [%clk 0:01:00] } 1... c5 { [%clk 0:01:00] } 2. f4 { [%clk 0:00:59] } 2... d6 { [%clk 0:01:00] } 1-0""" # noqa +1. e4 { [%clk 0:01:00] } 1... c5 { [%clk 0:01:00] } 2. f4 { [%clk 0:00:59] } 2... d6 { [%clk 0:01:00] } 3. e5 { [%eval 0.3] } 1-0""" # noqa game = chess.pgn.read_game(io.StringIO(pgn)) @@ -32,7 +32,9 @@ def test_clocks_visitor(): assert game.headers['clocks'] == ['0:01:00', '0:01:00', '0:00:59', - '0:01:00'] + '0:01:00', + '', + ] def test_queen_exchange_visitor():