fix: replace .get with pattern match in FenExporterTest halfMoveClock round-trip

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