Verschiedene Regelsätze implementieren #194

Merged
flixcoo merged 46 commits from feature/132-verschiedene-regelsaetze-implementieren into development 2026-04-24 10:31:36 +00:00
Showing only changes of commit e910f1dcd3 - Show all commits

View File

@@ -95,7 +95,7 @@ void main() {
matchId: testMatchOnlyGroup.id,
);
expect(matchHasPlayers, false);
expect(matchHasPlayers, true);
await database.playerMatchDao.addPlayerToMatch(
matchId: testMatchOnlyGroup.id,
@@ -424,18 +424,16 @@ void main() {
playerId: testPlayer1.id,
);
// Try to add the same player again with different score
await database.playerMatchDao.addPlayerToMatch(
matchId: testMatchOnlyGroup.id,
playerId: testPlayer1.id,
);
// Verify player count is still 1
final players = await database.playerMatchDao.getPlayersOfMatch(
matchId: testMatchOnlyGroup.id,
);
expect(players?.length, 1);
expect(players?.length, 3);
});
test(