def test_complex_game(): print("####Testing Complex Game####") final = total_score(complex_game) assert final == 127
def test_spare_game(): print("####Testing Spare Game####") final = total_score(spare_game) assert final == 150
def test_strike_game(): print("####Testing Strike Game####") final = total_score(strike_game) assert final == 300
def test_final_score(): print("####Testing Gutter Game####") final = total_score(gutter_game) assert final == 0
def test_simple_game(): print("####Testing Simple Game####") final = total_score(simple_game) assert final == 20
def test_complex_game(self): print("####Testing Complex Game####") final = total_score(complex_game) self.assertEqual(final, 127, "Should be 127")
def test_strike_game(self): print("####Testing Strike Game####") final = total_score(strike_game) self.assertEqual(final, 300, "Should be 300")
def test_spare_game(self): print("####Testing Spare Game####") final = total_score(spare_game) self.assertEqual(final, 150, "Should be 150")
def test_simple_game(self): print("####Testing Simple Game####") final = total_score(simple_game) self.assertEqual(final, 20, "Shold be 20")
def test_final_score(self): print("####Testing Gutter Game####") final = total_score(gutter_game) self.assertEqual(final, 0, "should be zero")