nus-cs2113-AY1920S2 / pe-dev-response

0 stars 0 forks source link

Adding recipe with ingredients in the wrong category #665

Open nus-pe-bot opened 4 years ago

nus-pe-bot commented 4 years ago

f966b2bc9e8e3b7eac855085c42e7e0.png Kangroo is in Meat however it can be added with Kangroo:1:staple

3e800e3ff7c0cf16201648238b70dd4.png


[original: nus-cs2113-AY1920S2/pe-interim#667]

alwayshuizhen commented 4 years ago

Team's Response

As stated in the UG section 3.4.1 the definition of recipe is given Adds a new unique recipe into the List in Kitchen Helper. A recipe is a list of ingredients that are used to cook a dish.. Therefore the ingredient parameter is not linked to the ingredients that the user have already added.

Input tested: addrecipe /n Aussie /i kangaroo:1:staple Verification:


listrecipe all

Here is the list of Recipe:

Format:[Recipe Number] Recipe Name
[1] Aussie

===================================================
listrecipe 1

Here is the list of Ingredients in Recipe:
Format:Ingredient Name | Ingredient Category | Quantity
Recipe Name:Aussie
Ingredient Name : kangaroo | Category : staple | 1 portion(s)

===================================================```

 ## Duplicate status (if any):
--