Skip to content

Commit

Permalink
test nine strikes
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 25, 2017
1 parent ad1fe74 commit 053432b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions game_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 053432b

Please sign in to comment.