RED: test one spare

This commit is contained in:
fiatcode 2026-02-10 11:37:52 +07:00
parent acf96ad482
commit f34c820c65

View file

@ -24,5 +24,14 @@ void main() {
rollMany(20, 1);
expect(game.score(), 20);
});
test('one spare', () {
game.roll(5);
game.roll(5); // spare
game.roll(3); // bonus for spare
rollMany(17, 0); // rest are gutter balls
expect(game.score(), 16); // 10 (spare) + 3 (bonus) + 3 (normal roll)
});
});
}