Skip to content

Commit

Permalink
fix tests after lila.tree.Clock
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 30, 2024
1 parent 9b50006 commit 25e21ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/study/src/test/PgnImportTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 25e21ee

Please sign in to comment.