示例#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)