Example #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)
Example #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)
Example #3
0
 def test_finds_best_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients)
     self.assertEqual(score, 62842880)
Example #4
0
 def test_finds_best_recipe(self):
     ingredients = [self.ing1, self.ing2]
     recipe, score = find_best_recipe(ingredients)
     self.assertEqual(score, 62842880)