Skip to content

Commit a5f5209

Browse files
Fix indentation
1 parent 4a22d1f commit a5f5209

1 file changed

Lines changed: 48 additions & 38 deletions

File tree

docs/DeveloperGuide.md

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -882,30 +882,37 @@ to work on.
882882
### Add an entry
883883

884884
1. Add an entry with the provided details
885-
885+
886886
1. Prerequisite: `list` entries to ensure that the entry going to be added in not already displayed in the Food Diary application.
887887

888888
2. Test case: `add n/Subway ra/5 p/6 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC`
889-
<br>Expected: Add an entry with name Subway, 5/5 Rating, 'I like this food a lot!' review, 3155 Commonwealth Ave W, Singapore 129588 address,
889+
890+
Expected: Add an entry with name Subway, 5/5 Rating, 'I like this food a lot!' review, 3155 Commonwealth Ave W, Singapore 129588 address,
890891
FastFood and Vegan categories and a SOC. A new entry will be shown in the entry list panel.<br />
891892
<br />
892893
3. Test case: `add n/Subway ra/7 p/6 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC`
893-
<br>Expected: Invalid rating error will be shown in the result display. Entry will not be added.<br />
894+
895+
Expected: Invalid rating error will be shown in the result display. Entry will not be added.<br />
894896
<br />
895897
4. Test case: `add n/Subway ra/5 p/1000 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC`
896-
<br>Expected: Invalid price error will be shown in the result display. Entry will not be added.<br />
898+
899+
Expected: Invalid price error will be shown in the result display. Entry will not be added.<br />
897900
<br />
898901
5. Test case: `add n/Subway ra/5 p/6 re/ a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC`
899-
<br>Expected: Invalid review error will be shown in the result display. Entry will not be added.<br />
902+
903+
Expected: Invalid review error will be shown in the result display. Entry will not be added.<br />
900904
<br />
901905
6. Test case: `add n/Subway ra/5 p/6 re/I like this food a lot! a/ c/FastFood c/Vegan s/SOC`
902-
<br>Expected: Invalid address error will be shown in the result display. Entry will not be added.<br />
906+
907+
Expected: Invalid address error will be shown in the result display. Entry will not be added.<br />
903908
<br />
904909
7. Test case: `add n/Subway ra/5 p/6 re/I like this food a lot! a/Deck c/FastFood c/Math s/SOC`
905-
<br>Expected: A list of valid categories will be shown in the result display. Entry will not be added.<br />
910+
911+
Expected: A list of valid categories will be shown in the result display. Entry will not be added.<br />
906912
<br />
907913
8. Test case: `add n/Subway ra/5 p/6 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/Primary`
908-
<br>Expected: A list of valid schools will be shown in the result display. Entry will not be added.<br />
914+
915+
Expected: A list of valid schools will be shown in the result display. Entry will not be added.<br />
909916
<br />
910917
9. Other incorrect add commands to try: `add n/Subway ra/5 p/6 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC`
911918
followed by `add n/Subway ra/5 p/6 re/I like this food a lot! a/3155 Commonwealth Ave W, Singapore 129588 c/FastFood c/Vegan s/SOC` (duplicate entry)<br>
@@ -917,20 +924,20 @@ to work on.
917924

918925
2. Test case: `addon 1 re/I like this food a lot! p/7`
919926

920-
<br>Expected: Add on the review "I like this food a lot!" and a price of $7 to the existing price/price range shown in the entry (price range updates if the input price is
927+
Expected: Add on the review "I like this food a lot!" and a price of $7 to the existing price/price range shown in the entry (price range updates if the input price is
921928
out of the initial price range displayed in the entry). Specified Entry will be updated with the addon on fields.<br />
922929
<br />
923930
3. Test case: `addon 1`
924931

925-
<br>Expected: Error message "At least one field to add-on must be provided." will be shown in the result display. Nothing will be added on to the specified entry.<br />
932+
Expected: Error message "At least one field to add-on must be provided." will be shown in the result display. Nothing will be added on to the specified entry.<br />
926933
<br />
927934
4. Test case: `addon 1 re/`
928935

929-
<br>Expected: Invalid review error will be shown in the result display. Nothing will be added on to the specified entry.<br />
936+
Expected: Invalid review error will be shown in the result display. Nothing will be added on to the specified entry.<br />
930937
<br />
931938
5. Test case: `addon 1 re/Good Food p/1000`
932939

933-
<br>Expected: Invalid price error will be shown in the result display. Nothing will be added on to the specified entry.<br />
940+
Expected: Invalid price error will be shown in the result display. Nothing will be added on to the specified entry.<br />
934941
<br />
935942

936943
6. Other incorrect `addon` commands to try: `addon 10000000000 re/Good Food` (invalid index)
@@ -942,12 +949,12 @@ to work on.
942949

943950
2. Test case: `delete 1`
944951

945-
<br>Expected: Delete entry at index 1. Success message and deleted entry details shown in the result display.<br />
952+
Expected: Delete entry at index 1. Success message and deleted entry details shown in the result display.<br />
946953
<br />
947954
948955
3. Test case: `delete x` (where x is non-existent booking ID)
949956

950-
<br>Expected: Error of invalid entry shown in result display. No entry is deleted.<br />
957+
Expected: Error of invalid entry shown in result display. No entry is deleted.<br />
951958
<br />
952959
953960
4. Other incorrect delete commands to try: `delete`, `delete Starbucks`
@@ -1144,34 +1151,35 @@ to work on.
11441151
* `INDEX` refers to index of Entry to revise in view.
11451152

11461153
* The following test cases will test different permutations and numbers of `KEYWORD`(s).<br />
1147-
<br />
1154+
<br />
1155+
11481156
2. Test case: `edit 1 n/McDonalds`
11491157

11501158
Expected:
1151-
- First entry has named changed to "McDonalds".
1152-
- All entries remained shown
1153-
- Success message displayed informing the user of change.<br />
1159+
- First entry has named changed to "McDonalds".
1160+
- All entries remained shown
1161+
- Success message displayed informing the user of change.<br />
11541162
<br />
11551163
3. Test case: `edit 2 ra/0`
11561164

11571165
Expected:
1158-
- Second entry has rating changed to 0. (0/5)
1159-
- All entries remained shown (with the first entry remaining edited as done previously).
1160-
- Success message displayed informing the user of change.<br />
1166+
- Second entry has rating changed to 0. (0/5)
1167+
- All entries remained shown (with the first entry remaining edited as done previously).
1168+
- Success message displayed informing the user of change.<br />
11611169
<br />
11621170
4. Test case: `edit 3 a/50 West Coast Road`
11631171

11641172
Expected:
1165-
- Third entry has address changed to "50 West Coast Road".
1166-
- All entries remained shown (with all entries updated previously).
1167-
- Success message displayed informing the user of change.<br />
1173+
- Third entry has address changed to "50 West Coast Road".
1174+
- All entries remained shown (with all entries updated previously).
1175+
- Success message displayed informing the user of change.<br />
11681176
<br />
11691177
5. Test case: `edit 4 re/I had a great time here.`
11701178

1171-
Expected:
1172-
- Fourth entry has review changed to "I had a great time here".
1173-
- All entries remained shown (with all entries updated previously).
1174-
- Success message displayed informing the user of change.<br />
1179+
Expected:
1180+
- Fourth entry has review changed to "I had a great time here".
1181+
- All entries remained shown (with all entries updated previously).
1182+
- Success message displayed informing the user of change.<br />
11751183
<br />
11761184
6. Test case: `edit 5 p/20`
11771185

@@ -1182,32 +1190,34 @@ to work on.
11821190
<br />
11831191
7. Test case: `edit 1 n/Hwangs ra/4 p/7 a/NUS re/Korean food makes me happy. s/Utown c/Korean`
11841192

1185-
Expected:
1186-
- First entry has name changed to "Hwangs", rating changed to "4" (4/5), price changed to "7" ($7),
1193+
Expected:
1194+
- First entry has name changed to "Hwangs", rating changed to "4" (4/5), price changed to "7" ($7),
11871195
review changed to "Korean food makes me happy.", school location tags changed to "UTOWN", and
11881196
food category changed to "Korean".
1189-
- All entries remained shown (with all entries updated previously).
1190-
- Success message displayed informing the user of change.<br />
1197+
- All entries remained shown (with all entries updated previously).
1198+
- Success message displayed informing the user of change.<br />
11911199
<br />
11921200
8. Test case: `edit 1 c/Korean c/Others`
11931201

1194-
Expected:
1195-
- First entry has food category changed to "Korean" and "Others".
1196-
- All entries remained shown (with all entries updated previously).
1197-
- Success message displayed informing the user of change.
1202+
Expected:
1203+
- First entry has food category changed to "Korean" and "Others".
1204+
- All entries remained shown (with all entries updated previously).
1205+
- Success message displayed informing the user of change.
11981206

11991207
### Clear all entries
12001208
1. Remove all entries from The Food Diary
12011209

1202-
1. Prerequisite: None
1210+
1. Prerequisite: None<br />
1211+
<br />
12031212

12041213
2. Test Case: Correct command:`clear`
12051214

12061215
Expected: Success message will show up in command box informing user that all entries are cleared.<br />
12071216
<br />
12081217
3. Test Case: Command not in lower-case: `cLeAr`
12091218

1210-
Expected: User will be notified about unknown command in the command box.
1219+
Expected: User will be notified about unknown command in the command box.<br />
1220+
<br />
12111221
12121222
## **UI Mockup**
12131223

0 commit comments

Comments
 (0)