From 25e21ee6272db793b4305b04c42cae6d3f754d14 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Mon, 30 Dec 2024 10:55:42 +0100 Subject: [PATCH] fix tests after lila.tree.Clock --- modules/study/src/test/PgnImportTest.scala | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/study/src/test/PgnImportTest.scala b/modules/study/src/test/PgnImportTest.scala index 581de134da2b..735d157c18c4 100644 --- a/modules/study/src/test/PgnImportTest.scala +++ b/modules/study/src/test/PgnImportTest.scala @@ -56,8 +56,8 @@ class PgnImportTest extends lila.common.LilaTest: ) .toOption .get - assertEquals(x.root.mainlineNodeList(3).clock.get, Clock(chess.Centis(718700), none)) - assertEquals(x.root.mainlineNodeList(4).clock.get, Clock(chess.Centis(717700), none)) + assertEquals(x.root.mainlineNodeList(3).clock.get, Clock(chess.Centis(718700), false.some)) + assertEquals(x.root.mainlineNodeList(4).clock.get, Clock(chess.Centis(717700), false.some)) test("import a broadcast pgn"): val x = StudyPgnImport @@ -95,8 +95,8 @@ Rad1 {[%clk 1:24:50]} b6 {[%clk 1:09:49]} 18. g4 {[%clk 1:03:52]} *""", ) .toOption .get - assert(x.root.mainlineNodeList(1).clock.contains(chess.Centis(719900))) - assert(x.root.mainlineNodeList(2).clock.contains(chess.Centis(718000))) + assert(x.root.mainlineNodeList(1).clock.contains(Clock(chess.Centis(719900), true.some))) + assert(x.root.mainlineNodeList(2).clock.contains(Clock(chess.Centis(718000), true.some))) test("import a broadcast pgn with missing clock)"): val x = StudyPgnImport