Exemple #1
0
 def test_count_weights1(self):
     test_amount = 8
     accepted_return = 2
     coin_count = min_count_weights(test_amount, [1,4,5,9])[test_amount]
     self.assertEqual(coin_count,accepted_return)
Exemple #2
0
 def test_count_weights2(self):
     test_amount = 10
     accepted_return = 2
     coin_count = min_count_weights(test_amount, [1,3,5,7])[test_amount]
     self.assertEqual(coin_count,accepted_return)