Skip to content

Commit

Permalink
fix tree clock test
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 30, 2024
1 parent 25e21ee commit 5694d21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/relay/src/test/RelayGameTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package lila.relay
import chess.format.pgn.PgnStr
import chess.Centis
import lila.study.MultiPgn
import lila.tree.Clock

class RelayGameTest extends munit.FunSuite:

Expand All @@ -29,8 +30,8 @@ class RelayGameTest extends munit.FunSuite:

test("applyTagClocksToLastMoves"):
val applied = g1.applyTagClocksToLastMoves
assertEquals(applied.root.lastMainlineNode.clock, blackCentis.some)
assertEquals(applied.root.mainline.head.clock, whiteCentis.some)
assertEquals(applied.root.lastMainlineNode.clock, Clock(blackCentis, true.some).some)
assertEquals(applied.root.mainline.head.clock, Clock(whiteCentis, true.some).some)

val g2 = makeGame:
"""
Expand Down

0 comments on commit 5694d21

Please sign in to comment.