Esempio n. 1
0
def test_complex_game():
    print("####Testing Complex Game####")
    final = total_score(complex_game)
    assert final == 127
Esempio n. 2
0
def test_spare_game():
    print("####Testing Spare Game####")
    final = total_score(spare_game)
    assert final == 150
Esempio n. 3
0
def test_strike_game():
    print("####Testing Strike Game####")
    final = total_score(strike_game)
    assert final == 300
Esempio n. 4
0
def test_final_score():
    print("####Testing Gutter Game####")
    final = total_score(gutter_game)
    assert final == 0
Esempio n. 5
0
def test_simple_game():
    print("####Testing Simple Game####")
    final = total_score(simple_game)
    assert final == 20
Esempio n. 6
0
 def test_complex_game(self):
     print("####Testing Complex Game####")
     final = total_score(complex_game)
     self.assertEqual(final, 127, "Should be 127")
Esempio n. 7
0
 def test_strike_game(self):
     print("####Testing Strike Game####")
     final = total_score(strike_game)
     self.assertEqual(final, 300, "Should be 300")
Esempio n. 8
0
 def test_spare_game(self):
     print("####Testing Spare Game####")
     final = total_score(spare_game)
     self.assertEqual(final, 150, "Should be 150")
Esempio n. 9
0
 def test_simple_game(self):
     print("####Testing Simple Game####")
     final = total_score(simple_game)
     self.assertEqual(final, 20, "Shold be 20")
Esempio n. 10
0
 def test_final_score(self):
     print("####Testing Gutter Game####")
     final = total_score(gutter_game)
     self.assertEqual(final, 0, "should be zero")