Open EangJS opened 1 year ago
No details provided by team.
[The team marked this bug as a duplicate of the following bug]
Input big number for add-stat value
When I give a very big number, both negative and positive, the program tells me to give an integer although the value is already an integer
[original: nus-cs2113-AY2223S2/pe-interim#2449] [original labels: type.FunctionalityBug severity.Low]
[This is the team's response to the above 'original' bug]
Buggy program behaviour is caused by extreme user behaviour.
Bug is caused by integer overflow. Values between -2,147,483,648 and 2,147,483,647 (min and max values of type
int
) will result in expected behaviour.Valid negative values and zero throws the following error:
ERROR: Integer provided should be above 0
Valid non-zero positive values will successfully update the stat.
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]
Bug title
Large Integer is an invalid integer
Description of Bug
I have a very heavy pet. I want to add a large weight. However, the error produced says that my very large weight (integer) is an invalid integer which is inaccurate
Steps to reproduce
Expected
A more accurate message telling the user how to resolve the issue. Such as
input is invalid, try using a smaller integer
Actual
Inaccurate message that does not tell the user how to solve the issue
Reason for Severity
Low: May cause some issues in resolving the error especially for inexperienced users.