Fix simple swiss test

This commit is contained in:
Claude Brisson
2024-03-24 09:25:42 +01:00
parent f204ca1a5a
commit c66b1c4b3a
2 changed files with 15 additions and 3 deletions

View File

@@ -17,6 +17,9 @@ val nextTournamentId get() = _nextTournamentId.incrementAndGet()
val nextPlayerId get() = _nextPlayerId.incrementAndGet()
val nextGameId get() = _nextGameId.incrementAndGet()
// for tests
val lastPlayerId get() = _nextPlayerId.get()
interface Store {
fun getTournaments(): Map<ID, Map<String, String>>
fun addTournament(tournament: Tournament<*>)