Skip to content

Commit

Permalink
test all spare rolls
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jun 25, 2017
1 parent b7e1e3e commit 644f4aa
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion game_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ def test_9_spares
assert_equal(140, @game.score, "9 spares and a 5 wrong")
end

def test_all_spares
(0..9).each do |frame|
@game.add_roll(5)
@game.add_roll(5)
end
@game.add_roll(5)
assert_equal(150, @game.score, "all spares wrong")
end



end

0 comments on commit 644f4aa

Please sign in to comment.