Skip to content

Commit

Permalink
Added more scoring tests for possible edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
George Dorn committed Apr 11, 2011
1 parent bfdebc5 commit 8138341
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python 2/koans/about_scoring_project.py
Expand Up @@ -65,3 +65,8 @@ def test_score_of_other_triples_is_100x(self):
def test_score_of_mixed_is_sum(self):
self.assertEqual(250, score([2,5,2,2,3]))
self.assertEqual(550, score([5,5,5,5]))
self.assertEqual(1150, score([1,1,1,5,1]))

def test_ones_not_left_out(self):
self.assertEqual(300, score([1,2,2,2]))
self.assertEqual(350, score([1,5,2,2,2]))

0 comments on commit 8138341

Please sign in to comment.