Skip to content

Commit

Permalink
various non-strike, non-spare rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 25, 2017
1 parent e2b7350 commit 406e3a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions game_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,15 @@ def test_inverse_static_rolls_test
@game.reset
end
end

def test_various_non_strike_or_spare_rolls
(1..9).each do |pin_count|
(0..9).each do |frames|
@game.add_roll(pin_count)
@game.add_roll(9 - pin_count)
end
assert_equal(90, @game.score, "various non strike or spare tests failed")
@game.reset
end
end
end

0 comments on commit 406e3a9

Please sign in to comment.