Пример #1
0
 def test_com_tres_estrelas_iguais(self):
     self.assertEqual(1, destroy([1, 1, 1]))
Пример #2
0
 def test_com_quatro_estrelas_f(self):
     self.assertEqual(2937051, destroy([477,744,474,777,447,747,777,474]))
     self.assertEqual(10400, destroy([100,2,1,3,100]))
Пример #3
0
 def test_com_tres_estrelas(self):
     self.assertEqual(3, destroy([1, 2, 3]))
Пример #4
0
 def test_com_quatro_estrelas_e(self):
     self.assertEqual(34, destroy([2, 1, 8, 9]))
Пример #5
0
 def test_com_quatro_estrelas_d(self):
     self.assertEqual(20, destroy([3, 2, 2, 4]))
Пример #6
0
 def test_com_quatro_estrelas_c(self):
     self.assertEqual(8, destroy([1, 3, 1, 2]))       
Пример #7
0
 def test_com_quatro_estrelas_b(self):
     self.assertEqual(8, destroy([2, 1, 3, 1]))  
Пример #8
0
 def test_com_quatro_estrelas(self):
     self.assertEqual(4, destroy([2, 1, 1, 1]))