Exemple #1
0
 def test08(self):
     self.assertEqual(lab3.change(189, [1, 5, 10, 20, 50, 100]), 9)
Exemple #2
0
 def test06(self):
     self.assertEqual(lab3.change(67, [1, 5, 10, 20, 50, 100]), 5)
Exemple #3
0
 def test07(self):
     self.assertEqual(lab3.change(72, [1, 5, 10, 20, 50, 100]), 4)
Exemple #4
0
 def test05(self):
     self.assertEqual(lab3.change(29, [1, 5, 10, 20, 50, 100]), 6)
Exemple #5
0
 def test04(self):
     self.assertEqual(lab3.change(7, [1, 5, 10]), 3)
Exemple #6
0
 def test03(self):
     self.assertEqual(lab3.change(1, [1, 5, 10]), 1)
Exemple #7
0
 def test02(self):
     self.assertEqual(lab3.change(1, []), float("inf"))
Exemple #8
0
 def test01(self):
     self.assertEqual(lab3.change(0, []), 0)