示例#1
0
 def test_finds_best_calorie_limited_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients, calorie_target=500)
     self.assertEqual(score, 57600000)
示例#2
0
 def test_finds_best_calorie_limited_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients, calorie_target=500)
     self.assertEqual(score, 57600000)
示例#3
0
 def test_finds_best_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients)
     self.assertEqual(score, 62842880)
示例#4
0
 def test_finds_best_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients)
     self.assertEqual(score, 62842880)