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