You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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 />
900
904
<br />
901
905
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 />
903
908
<br />
904
909
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 />
906
912
<br />
907
913
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 />
909
916
<br />
910
917
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`
911
918
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.
917
924
918
925
2. Test case: `addon 1 re/I like this food a lot! p/7`
919
926
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
921
928
out of the initial price range displayed in the entry). Specified Entry will be updated with the addon on fields.<br />
922
929
<br />
923
930
3. Test case: `addon 1`
924
931
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 />
926
933
<br />
927
934
4. Test case: `addon 1 re/`
928
935
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 />
930
937
<br />
931
938
5. Test case: `addon 1 re/Good Food p/1000`
932
939
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 />
934
941
<br />
935
942
936
943
6. Other incorrect `addon` commands to try: `addon 10000000000 re/Good Food` (invalid index)
@@ -942,12 +949,12 @@ to work on.
942
949
943
950
2. Test case: `delete 1`
944
951
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 />
946
953
<br />
947
954
948
955
3. Test case: `delete x` (where x is non-existent booking ID)
949
956
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 />
951
958
<br />
952
959
953
960
4. Other incorrect delete commands to try: `delete`, `delete Starbucks`
@@ -1144,34 +1151,35 @@ to work on.
1144
1151
*`INDEX` refers to index of Entry to revise in view.
1145
1152
1146
1153
* The following test cases will test different permutations and numbers of `KEYWORD`(s).<br />
1147
-
<br />
1154
+
<br />
1155
+
1148
1156
2. Test case: `edit 1 n/McDonalds`
1149
1157
1150
1158
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 />
1154
1162
<br />
1155
1163
3. Test case: `edit 2 ra/0`
1156
1164
1157
1165
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 />
1161
1169
<br />
1162
1170
4. Test case: `edit 3 a/50 West Coast Road`
1163
1171
1164
1172
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 />
1168
1176
<br />
1169
1177
5. Test case: `edit 4 re/I had a great time here.`
1170
1178
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 />
1175
1183
<br />
1176
1184
6. Test case: `edit 5 p/20`
1177
1185
@@ -1182,32 +1190,34 @@ to work on.
1182
1190
<br />
1183
1191
7. Test case: `edit 1 n/Hwangs ra/4 p/7 a/NUS re/Korean food makes me happy. s/Utown c/Korean`
1184
1192
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),
1187
1195
review changed to "Korean food makes me happy.", school location tags changed to "UTOWN", and
1188
1196
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 />
1191
1199
<br />
1192
1200
8. Test case: `edit 1 c/Korean c/Others`
1193
1201
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.
1198
1206
1199
1207
### Clear all entries
1200
1208
1. Remove all entries from The Food Diary
1201
1209
1202
-
1. Prerequisite: None
1210
+
1. Prerequisite: None<br />
1211
+
<br />
1203
1212
1204
1213
2. Test Case: Correct command:`clear`
1205
1214
1206
1215
Expected: Success message will show up in command box informing user that all entries are cleared.<br />
1207
1216
<br />
1208
1217
3. Test Case: Command not in lower-case: `cLeAr`
1209
1218
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 />
0 commit comments