예제 #1
0
 def test_can_bowl_a_spare(self):
     game = Bowling()
     game.roll(6)
     game.roll(4)
     game.roll(1)
     self.assertEquals(12, game.score()) 
예제 #2
0
 def test_can_bowl_2_times_4_equals_8(self):
     game = Bowling()
     game.roll(4)
     game.roll(4)
     self.assertEquals(8, game.score())
예제 #3
0
 def test_can_bowl_a_strike(self):
     game = Bowling()
     game.roll(10)
     game.roll(4)
     game.roll(4)
     self.assertEquals(26, game.score())