Skip to content

Commit

Permalink
test static rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 25, 2017
1 parent 6eacfb7 commit 6ab9f49
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions game_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,16 @@ def test_20_rolls_of_0_is_0
assert_equal(0, @game.score, "game score wrong for 0 pins")
end

def test_static_rolls_score_is_correct
(1..9).each do |pin_count|
(0..9).each do |frames|
@game.add_roll(pin_count)
@game.add_roll(0)
end
assert_equal(pin_count * 10, @game.score, "score is wrong first static test!")
@game.reset
end
end


end

0 comments on commit 6ab9f49

Please sign in to comment.