Пример #1
0
 def testExactChangeZero(self):
     self.assertEqual(hw.exact_change(0, [4, 5, 6]), True)
Пример #2
0
 def testExactChangeFail2(self):
     self.assertEqual(hw.exact_change(42, [23, 1, 23, 100]), False)
Пример #3
0
 def testExactChangeSuccess2(self):
     self.assertEqual(hw.exact_change(42, [23, 17, 2, 100]), True)
Пример #4
0
 def testExactChangeSuccess1(self):
     self.assertEqual(hw.exact_change(42, [25, 1, 25, 10, 5, 1]), True)
Пример #5
0
 def testExactChangeFail1(self):
     self.assertEqual(hw.exact_change(42, [25, 1, 25, 10, 5]), False)
Пример #6
0
 def testExactChangeZero(self):
     self.assertEqual(hw.exact_change(0, [4, 5, 6]), True)
Пример #7
0
 def testExactChangeSuccess2(self):
     self.assertEqual(hw.exact_change(42, [23, 17, 2, 100]), True)
Пример #8
0
 def testExactChangeFail2(self):
     self.assertEqual(hw.exact_change(42, [23, 1, 23, 100]), False)
Пример #9
0
 def testExactChangeFail1(self):
     self.assertEqual(hw.exact_change(42, [25, 1, 25, 10, 5]), False)
Пример #10
0
 def testExactChangeSuccess1(self):
     self.assertEqual(hw.exact_change(42, [25, 1, 25, 10, 5, 1]), True)