From e4167c03a5702a21bde2abe547d184d0bc83584d Mon Sep 17 00:00:00 2001 From: fiatcode Date: Tue, 10 Feb 2026 11:22:23 +0700 Subject: [PATCH] RED: test all ones --- test/bowling_game_test.dart | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/bowling_game_test.dart b/test/bowling_game_test.dart index f80bb94..71e9aa1 100644 --- a/test/bowling_game_test.dart +++ b/test/bowling_game_test.dart @@ -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); + }); }); }