fix: replace .get with pattern match in FenExporterTest halfMoveClock round-trip
Build & Test (NowChessSystems) TeamCity build failed

This commit is contained in:
LQ63
2026-03-31 23:28:22 +02:00
parent 97c3ff5e67
commit 5e22924053
@@ -83,5 +83,6 @@ class FenExporterTest extends AnyFunSuite with Matchers:
status = GameStatus.InProgress status = GameStatus.InProgress
) )
val fen = FenExporter.gameStateToFen(gameState) val fen = FenExporter.gameStateToFen(gameState)
val parsed = FenParser.parseFen(fen).get FenParser.parseFen(fen) match
parsed.halfMoveClock shouldBe 42 case Some(gs) => gs.halfMoveClock shouldBe 42
case None => fail("FEN parsing failed")