def test_perfect_game(self): game = ((10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 10, 10)) self.assertEqual(start_bowling.get_score(game), 300)
def test_all_spares(self): game = ((4, 6), (4, 6), (4, 6), (4, 6), (4, 6), (4, 6), (4, 6), (4, 6), (4, 6), (4, 6, 4)) self.assertEqual(start_bowling.get_score(game), 140)
def test_nine_strikes_and_gutter(self): game = ((10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (10, 0), (0, 0)) self.assertEqual(start_bowling.get_score(game), 240)
def test_gutter_balls(self): game = ((0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0), (0, 0)) self.assertEqual(start_bowling.get_score(game), 0)
def test_all_threes(self): game = ((3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3), (3, 3)) self.assertEqual(start_bowling.get_score(game), 60)