diff --git a/modules/core/src/test/scala/de/nowchess/chess/notation/FenExporterTest.scala b/modules/core/src/test/scala/de/nowchess/chess/notation/FenExporterTest.scala index 8a25d2c..6734b15 100644 --- a/modules/core/src/test/scala/de/nowchess/chess/notation/FenExporterTest.scala +++ b/modules/core/src/test/scala/de/nowchess/chess/notation/FenExporterTest.scala @@ -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")