diff --git a/tests/test_game.cpp b/tests/test_game.cpp index e532da8..f34494c 100644 --- a/tests/test_game.cpp +++ b/tests/test_game.cpp @@ -23,4 +23,16 @@ TEST(GameTest, StrikeForFirstThrowInFrame) { for (int i = 0; i < 16; i++) game.roll(0); EXPECT_EQ(game.score(), 10 + 4 + 2 + 4 + 2); +} + +TEST(GameTest, DoubleStrike) { + Game game; + game.roll(10); + game.roll(10); + game.roll(8); + game.roll(1); + + for (int i = 0; i < 16; i++) + game.roll(0); + EXPECT_EQ(game.score(), 56); } \ No newline at end of file