Exemple #1
0
 def test_case_1(self):
     self.assertEqual(perform('101011'), 4)
Exemple #2
0
 def test_case_2(self):
     self.assertEqual(perform('11001'), 3)
Exemple #3
0
 def test_case_7(self):
     self.assertEqual(perform('01110'), 2)
Exemple #4
0
 def test_case_8(self):
     self.assertEqual(perform('1110101010100001111'), 13)
Exemple #5
0
 def test_case_7(self):
     self.assertEqual(perform('11111'), 0)
Exemple #6
0
 def test_case_6(self):
     self.assertEqual(perform('00000'), 0)
Exemple #7
0
 def test_case_5(self):
     self.assertEqual(perform('10000'), 1)
Exemple #8
0
 def test_case_4(self):
     self.assertEqual(perform('11110'), 1)
Exemple #9
0
 def test_case_3(self):
     self.assertEqual(perform('10001'), 2)