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