refactor: NCS-22 NCS-23 reworked modules and tests #17

Merged
Janis merged 42 commits from refactor/NCS-22 into main 2026-04-06 09:07:40 +02:00
Showing only changes of commit 2d07f1f75a - Show all commits
@@ -45,11 +45,7 @@ object PgnParser:
}
errors match
case Some(err) => Left(err)
case None =>
if finalCtx.moves.isEmpty && game.moves.nonEmpty then
Left("No moves were parsed from the PGN")
else
Right(finalCtx)
case None => Right(finalCtx)
}
/** Parse a complete PGN text into a PgnGame with headers and moves.