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
Copy file name to clipboardExpand all lines: docs/DeveloperGuide.md
+28-22Lines changed: 28 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -916,19 +916,22 @@ to work on.
916
916
1. Prerequisite: `list` to select the entry you want to add on details to. There must be at least one entry displayed.<br>
917
917
918
918
2. Test case: `addon 1 re/I like this food a lot! p/7`
919
-
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
921
-
out of the initial price range displayed in the entry). Specified Entry will be updated with the addon on fields.<br />
922
-
<br />
919
+
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
921
+
out of the initial price range displayed in the entry). Specified Entry will be updated with the addon on fields.<br />
922
+
<br />
923
923
3. Test case: `addon 1`
924
-
<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 />
925
-
<br />
924
+
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 />
926
+
<br />
926
927
4. Test case: `addon 1 re/`
927
-
<br>Expected: Invalid review error will be shown in the result display. Nothing will be added on to the specified entry.<br />
928
-
<br />
928
+
929
+
<br>Expected: Invalid review error will be shown in the result display. Nothing will be added on to the specified entry.<br />
930
+
<br />
929
931
5. Test case: `addon 1 re/Good Food p/1000`
930
-
<br>Expected: Invalid price error will be shown in the result display. Nothing will be added on to the specified entry.<br />
931
-
<br />
932
+
933
+
<br>Expected: Invalid price error will be shown in the result display. Nothing will be added on to the specified entry.<br />
934
+
<br />
932
935
933
936
6. Other incorrect `addon` commands to try: `addon 10000000000 re/Good Food` (invalid index)
934
937
@@ -938,14 +941,17 @@ to work on.
938
941
1. Prerequisite: `list` all entries to find out the name of the entry to delete<br>
939
942
940
943
2. Test case: `delete 1`
941
-
<br>Expected: Delete entry at index 1. Success message and deleted entry details shown in the result display.<br />
942
-
<br />
944
+
945
+
<br>Expected: Delete entry at index 1. Success message and deleted entry details shown in the result display.<br />
946
+
<br />
947
+
943
948
3. Test case: `delete x` (where x is non-existent booking ID)
944
-
<br>Expected: Error of invalid entry shown in result display. No entry is deleted.<br />
945
-
<br />
949
+
950
+
<br>Expected: Error of invalid entry shown in result display. No entry is deleted.<br />
951
+
<br />
952
+
946
953
4. Other incorrect delete commands to try: `delete`, `delete Starbucks`
947
-
948
-
Expected: Invalid command format error. No entry is deleted.
954
+
Expected: Invalid command format error. No entry is deleted.
949
955
950
956
951
957
### Find entries
@@ -1145,35 +1151,35 @@ to work on.
1145
1151
- First entry has named changed to "McDonalds".
1146
1152
- All entries remained shown
1147
1153
- Success message displayed informing the user of change.<br />
1148
-
<br />
1154
+
<br />
1149
1155
3. Test case: `edit 2 ra/0`
1150
1156
1151
1157
Expected:
1152
1158
- Second entry has rating changed to 0. (0/5)
1153
1159
- All entries remained shown (with the first entry remaining edited as done previously).
1154
1160
- Success message displayed informing the user of change.<br />
1155
-
<br />
1161
+
<br />
1156
1162
4. Test case: `edit 3 a/50 West Coast Road`
1157
1163
1158
1164
Expected:
1159
1165
- Third entry has address changed to "50 West Coast Road".
1160
1166
- All entries remained shown (with all entries updated previously).
1161
1167
- Success message displayed informing the user of change.<br />
1162
-
<br />
1168
+
<br />
1163
1169
5. Test case: `edit 4 re/I had a great time here.`
1164
1170
1165
1171
Expected:
1166
1172
- Fourth entry has review changed to "I had a great time here".
1167
1173
- All entries remained shown (with all entries updated previously).
1168
1174
- Success message displayed informing the user of change.<br />
1169
-
<br />
1175
+
<br />
1170
1176
6. Test case: `edit 5 p/20`
1171
1177
1172
1178
Expected:
1173
1179
- Fifth entry has price changed to "20". ($20)
1174
1180
- All entries remained shown (with all entries updated previously).
1175
1181
- Success message displayed informing the user of change.<br />
1176
-
<br />
1182
+
<br />
1177
1183
7. Test case: `edit 1 n/Hwangs ra/4 p/7 a/NUS re/Korean food makes me happy. s/Utown c/Korean`
1178
1184
1179
1185
Expected:
@@ -1182,7 +1188,7 @@ to work on.
1182
1188
food category changed to "Korean".
1183
1189
- All entries remained shown (with all entries updated previously).
1184
1190
- Success message displayed informing the user of change.<br />
0 commit comments