From 053432b30486c63827ab70ed7d4b40d5554b2e4a Mon Sep 17 00:00:00 2001 From: = Date: Sat, 24 Jun 2017 22:07:26 -0600 Subject: [PATCH] test nine strikes --- game_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/game_test.rb b/game_test.rb index 14966dd..83850d8 100644 --- a/game_test.rb +++ b/game_test.rb @@ -94,4 +94,14 @@ def test_one_strike assert_equal(28, @game.score, "simple strike, 2 non-spare balls, and gutters wrong") end + def test_nine_strikes + (1..9).each do + @game.add_roll(10) + end + @game.add_roll(0) + @game.add_roll(0) + + assert_equal(240, @game.score, "9 strikes, 2 gutter balls wrong") + end + end