blackmirag3 / pe

0 stars 0 forks source link

Handling negative values in data file #6

Open blackmirag3 opened 4 months ago

blackmirag3 commented 4 months ago

Screenshot 2024-04-19 at 5.10.23 PM.png

Screenshot 2024-04-19 at 5.13.26 PM.png

When the user adds negative values into the expense data file via manual editing, the program does not seem to catch it and allows it to be read into expense list. Will this affect programme function, such as adding up expenses?

nus-pe-script commented 4 months ago

Team's Response

No details provided by team.

The 'Original' Bug

[The team marked this bug as a duplicate of the following bug]

Unhandled data corruption

image.png

image.png

When user add invalid number data, for example, -1, the program will not be able to catch the error, which may leads to bug. In my case, the overall expenses calculated is 0 which is wrong.


[original: nus-cs2113-AY2324S2/pe-interim#1765] [original labels: type.FunctionalityBug severity.Medium]

Their Response to the 'Original' Bug

[This is the team's response to the above 'original' bug]

I acknowledge the issue of unhandled data corruption when an invalid number is entered and thank you for identifying this issue.

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]