Skip to content

Commit

Permalink
Merge pull request #323 from jinfayap/fix-format
Browse files Browse the repository at this point in the history
Fix format
  • Loading branch information
jinfayap authored Apr 11, 2020
2 parents 80a00d2 + 4f080f4 commit dae40af
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ By: `CS2113T-M16-2` Since: `2020`
- [F.13. Delete a chore](#f13-delete-a-chore)
- [F.14. Search for chore](#f14-search-for-chore)
- [F.15. Mark a chore as done](#f15-mark-a-chore-as-done)
- [F.16. Saving data](#f15-saving-data)
- [F.17. Display expenditure](#f16-display-expenditure)
- [F.16. Saving data](#f16-saving-data)
- [F.17. Display expenditure](#f17-display-expenditure)

## 1. Introduction
### 1.1. Background
Expand Down Expand Up @@ -299,7 +299,7 @@ The following shows the full sequence diagram for this command:

![Delete Ingredient Sequence Diagram](images/deleteIngredientSequenceDiagram.png)

Other than deleting or reducing the quantity of an ingredient, `DeleteIngredientCommand` has an additional feature that is linked to [Display Expenditure](#45-display-expenditure) which will increase the cooking expenditure if the ingredients are used for cooking.
Other than deleting or reducing the quantity of an ingredient, `DeleteIngredientCommand` has an additional feature that is linked to [Display Expenditure](#451-display-expenditure) which will increase the cooking expenditure if the ingredients are used for cooking.

##### Design Considerations
+ Aspect 1: How to differentiate `deleteingredientByQuantity` and `deleteIngredient` <br>
Expand Down Expand Up @@ -582,7 +582,7 @@ The following shows the full sequence diagram for this command:

![Cook Recipe Sequence Diagram](images/cookRecipeCommandSequenceDiagram.png)

Other than reducing the quantity of ingredients if the recipe can be cooked successfully, `CookRecipeCommand` has an additional feature that is linked to [Display Expenditure](#45-display-expenditure) which will add the total cost of cooking this recipe into the total expenditure.
Other than reducing the quantity of ingredients if the recipe can be cooked successfully, `CookRecipeCommand` has an additional feature that is linked to [Display Expenditure](#451-display-expenditure) which will add the total cost of cooking this recipe into the total expenditure.

##### Design considerations
Aspect: Preparing the deduction of ingredients when cooking a recipe
Expand Down Expand Up @@ -1523,23 +1523,27 @@ Extensions:
2. Test case (Date deadline): `addchore buy groceries /by 13/04/2020 12:00`<br> Expected: The chore is added. Entry can be found using `listchore` command.
3. Test case (Incorrect date format): `addchore buy groceries /by 13-04-2020` <br> Expected: Deadline will be a String object type. The chore is added. Entry can be found using `listchore` command.
4. Test case (Invalid format): `addchore buy groceries` <br> Expected: The chore is not added. Entry cannot be found using `listchore` command.

#### F.12. List a chore
1. List the chores.
1. Test case (Empty list): `listchore` <br> Expected: "Your list of chores is currently empty."
2. Test case (Non-empty list): `listchore` <br> Expected: All the chore entries displayed.
3. Test case (Invalid format): `listchore aa` <br> Expected: "Invalid ListChore command." No chore entries displayed.

#### F.13. Delete a chore
1. Delete a chore from Kitchen Helper.
1. Prerequisites: List all the chores using `listchore` command.
2. Test case (Index in list): `deletechore 1` <br> The chore is deleted. It can be noticed by using the `listchore` command.
3. Test case (Index not in list or incorrect format): `deletechore 10` OR `deletechore -1` OR `deletechore buy groceries` <br> Expected: The chore is not deleted. It can be noticed by using the `listchore` command.

#### F.14. Search for chore
1. Search for chores in Kitchen Helper.
1. Prerequisites: The chore list should not be empty. You should at least add the following chore by using `addchore buy groceries /by Tuesday 12pm` before the search.
2. Test case: `searchchore groceries`
Expected: Chore entries that have the keyword matching `groceries` description are listed.
3. Test case: `searchchore Tuesday`
Expected: Chore entries that have the keyword matching `Tuesday` as a string are listed.
Expected: Chore entries that have the keyword matching `Tuesday` as a string are listed.

#### F.15. Mark a chore as done
1. Change the completion status of a chore to done.
1. Prerequisites: List all the chores using `listchore` command.
Expand Down Expand Up @@ -1585,4 +1589,5 @@ Note that expenditure changes when `addingredient`, `deleteingredient`, or `cook
6. Test case 3: `displayexpenditure` <br> Expected: The value of total expenditure decreases by the cost of ingredient multiplied by the quantity deleted.
7. Prerequisite 4: Delete an ingredient using `deleteingredient` command and respond with `no` when prompted to remove cost of ingredient from total expenditure and respond with `yes` when prompted to add cost of ingredient to amount used in cooking.
8. Test case 4: `displayexpenditure` <br> Expected: The value of amount used in cooking increases by the cost of ingredient multiplied by the quantity deleted.

[&#8593; Return to Top](#developer-guide)

0 comments on commit dae40af

Please sign in to comment.