예제 #1
0
 def test_process_turn_oneTurn_noHit(self):
   self.assertEqual((0,''), bowling.process_turn("--"))
예제 #2
0
 def test_process_turn_fourTurn_withFourStrikes(self):
   self.assertEqual((30,'XXX'), bowling.process_turn("XXXX"))
예제 #3
0
 def test_process_turn_oneTurn(self):
   self.assertEqual((3,''), bowling.process_turn("12"))
예제 #4
0
 def test_process_turn_threeTurn_withTwoStrikes(self):
   self.assertEqual((22,'X23'), bowling.process_turn("XX23"))
예제 #5
0
 def test_process_turn_twoTurn_withStrikeThenSpare(self):
   self.assertEqual((20,'1/'), bowling.process_turn("X1/"))
예제 #6
0
 def test_process_turn_twoTurn_withStrike(self):
   self.assertEqual((13,'12'), bowling.process_turn("X12"))
예제 #7
0
 def test_process_turn_twoTurn_withSpare_(self):
   self.assertEqual((13,'34'), bowling.process_turn("1/34"))
예제 #8
0
 def test_process_turn_twoTurn(self):
   self.assertEqual((3,'34'), bowling.process_turn("1234"))