Open GlendaChong opened 11 months ago
Error message is already able to specify that the user input error lies in the price part, and is saying that "price should be a non-negative integer...", which is guiding users on what are the correct inputs. It is definitely not a functionality bug. It is telling users the correct inputs to enter.
Team chose [response.Rejected
]
Reason for disagreement: This bug report is not incorrect.
According to the team,
Error message is already able to specify that the user input error lies in the price part, and is saying that "price should be a non-negative integer...", which is guiding users on what are the correct inputs.
By comparing the the command input edit-item s/1 i/1 p/5. 20
, in particular the price input, as shown in the image, it correctly satisfies the conditions as stated in the error message. This means that this command should have been a successful command as the price input is considered a correct input, based on the error message.
Error message:
Price should be a non-negative number with 2 decimal places. Remove leading 0s if the price is 1.00 and above. Only have 1 leading 0 if the price is less than 1.00, eg. 0.50
The expected behaviour, which throws an error, is thus incorrect.
The price of 5. 20 follows the error message provided, but the correct error is that no spaces should be allowed in between. However, this error is not displayed to the user, and hence the error message does not correctly match the error.