Open Bubbl3T opened 1 year ago
The index provided in the command needs to be positive, hence in this case, providing "0" violates the command format, and it is intended for the application to throw the error for invalid command format to show the user the command usage instruction for delete which once again notifies the user that index needs to be positive.
Team chose [response.Rejected
]
Reason for disagreement: [replace this with your explanation]
When the user enters the delete command with an invalid index that is greater than the number of items in the list, (e.g. list contains 5 items, user tries to enter command
delete 6
), the error message shown is "The itinerary index provided is invalid." However, when the user tries to enter the delete command with an index of 0 which is also an invalid index, the error message popped up was "Invalid command format!" followed by the command usage instructions for thedelete
command.