diff --git a/test/bowling_game_test.dart b/test/bowling_game_test.dart index c278f51..14fafe0 100644 --- a/test/bowling_game_test.dart +++ b/test/bowling_game_test.dart @@ -33,5 +33,14 @@ void main() { expect(game.score(), 16); // 10 (spare) + 3 (bonus) + 3 (normal roll) }); + + test('one strike', () { + game.roll(10); // Strike! + game.roll(3); + game.roll(4); // Next 2 rolls are bonus + rollMany(16, 0); + + expect(game.score(), 24); // 10 + 3 + 4 (strike) + 3 + 4 (frame 2) = 24 + }); }); }