Пример #1
0
 def test_5kg_1kg_1kg_1kg(self):
     doces = [5, 1, 1, 1]
     self.assertEqual(menor_diferenca(doces), 2)
Пример #2
0
 def test_1kg_2kg_4kg_3kg(self):
     doces = [1, 2, 4, 3]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #3
0
 def test_2kg(self):
     doces = [2]
     self.assertEqual(menor_diferenca(doces), 2)
Пример #4
0
 def test_2kg(self):
     doces = [2]
     self.assertEqual(menor_diferenca(doces), 2)
Пример #5
0
 def test_2kg_2kg_2kg_3kg(self):
     doces = [2, 2, 2, 3]
     self.assertEqual(menor_diferenca(doces), 1)
Пример #6
0
 def test_1_2_3_4_6(self):
     doces = [1, 2, 3, 4, 6]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #7
0
 def test_3_criancas_2(self):
     doces = [13, 9, 7, 7, 1, 7]
     self.assertEqual(menor_diferenca(doces, 3), 2)
Пример #8
0
 def test_1_2_3_4_6(self):
     doces = [1, 2, 3, 4, 6]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #9
0
 def test_3_criancas(self):
     doces = [3, 3, 3, 3, 3, 3, 5, 5]
     self.assertEqual(menor_diferenca(doces, 3), 1)
Пример #10
0
 def test_6kg_1kg_1kg_1kg(self):
     doces = [6, 1, 1, 1]
     self.assertEqual(menor_diferenca(doces), 3)
Пример #11
0
 def test_6kg_3kg_2kg_1kg(self):
     doces = [6, 3, 2, 1]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #12
0
 def test_5kg_1kg_1kg_1kg(self):
     doces = [5, 1, 1, 1]
     self.assertEqual(menor_diferenca(doces), 2)
Пример #13
0
 def test_1kg_2kg_4kg_3kg(self):
     doces = [1, 2, 4, 3]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #14
0
 def test_2kg_2kg_2kg_3kg(self):
     doces = [2, 2, 2, 3]
     self.assertEqual(menor_diferenca(doces), 1)
Пример #15
0
 def test_6kg_1kg_1kg_1kg(self):
     doces = [6, 1, 1, 1]
     self.assertEqual(menor_diferenca(doces), 3)
Пример #16
0
 def test_5kg(self):
     doces = [5]
     self.assertEqual(menor_diferenca(doces), 5)
Пример #17
0
 def test_6kg_3kg_2kg_1kg(self):
     doces = [6, 3, 2, 1]
     self.assertEqual(menor_diferenca(doces), 0)
Пример #18
0
 def test_3_criancas_2(self):
     doces = [13, 9, 7, 7, 1, 7]
     self.assertEqual(menor_diferenca(doces, 3), 2)
Пример #19
0
 def test_3_criancas(self):
     doces = [3, 3, 3, 3, 3, 3, 5, 5]
     self.assertEqual(menor_diferenca(doces, 3), 1)
Пример #20
0
 def test_5kg_2kg_2kg(self):
     doces = [5, 2, 2]
     self.assertEqual(menor_diferenca(doces), 1)
Пример #21
0
 def test_5kg(self):
     doces = [5]
     self.assertEqual(menor_diferenca(doces), 5)
Пример #22
0
 def test_5kg_2kg_2kg(self):
     doces = [5, 2, 2]
     self.assertEqual(menor_diferenca(doces), 1)