RED: test all ones

This commit is contained in:
fiatcode 2026-02-10 11:22:23 +07:00
parent 9a22a3e5fe
commit e4167c03a5

View file

@ -12,5 +12,15 @@ void main() {
expect(game.score(), 0);
});
test('all ones - score is 20', () {
final game = BowlingGame();
for (int i = 0; i < 20; i++) {
game.roll(1);
}
expect(game.score(), 20);
});
});
}