Open CXIA17 opened 7 months ago
Duplicate of #2031.
[The team marked this bug as a duplicate of the following bug]
Inaccuracy for error message in restock
In all three inputs, the input is a whole number, but the error message is indicating that whole number is not being inputted.
[original: nus-cs2113-AY2324S2/pe-interim#1806] [original labels: type.FunctionalityBug severity.VeryLow]
[This is the team's response to the above 'original' bug]
This is fair, we accept that this is a limitation of our input parsing process for integer values as the error message is inaccurate.
However, the issue is caused by the large input value of "9999999999999.....", which the target users of our application would never enter normally and what our team would consider as extreme user behavior, as defined in the image below.
Reasonable values entered by the user would not trigger this error message and would work fine, hence, the issue would not occur under expected usage. Our target users are small businesses, so its highly improbable that they would have item stock/quantity that exceeds even a million. Additionally, it is important to note that such inputs does not cause our application to crash, despite it displaying an incorrect error message.
Therefore, the team considers this a valid error message issue but out of scope due it being caused by extreme behavior.
Items for the Tester to Verify
:question: Issue duplicate status
Team chose to mark this issue as a duplicate of another issue (as explained in the Team's response above)
Reason for disagreement: [replace this with your explanation]
Over here, the quantity inputted is a whole number, but the error states that quantity must be a whole number.