Пример #1
0
 def test_int(self):
     result = Scorer(11111111111111111111)
     score = result.get_score()
     self.assertEqual(score, 20)
Пример #2
0
 def test_normal(self):
     result = Scorer('Х4/34-4-5X17X1/5-')
     score = result.get_score()
     self.assertEqual(score, 119)
Пример #3
0
 def test_x(self):
     result = Scorer('xxxxxxxxxx')
     score = result.get_score()
     self.assertEqual(score, 200)