andrewbaruch / pe

0 stars 0 forks source link

Odd Warning #4

Open andrewbaruch opened 2 years ago

andrewbaruch commented 2 years ago

Odd warning is given when the commands of addexpense is out of order Screenshot (31).png

nus-pe-bot commented 2 years ago

Team's Response

Warning is not out of order.

This command will add an expense of $2 paid for by David.

In addition, there is a personal payment to be excluded from the total payment by "bbb abc" of $60.

The total amount to be split among the rest of the group will thus be -$58 which is less than 0 and thus triggers the error message.

Hence, there is no issue with the error message here.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: The only constraint with regards to the order of this command is the following:

Given that, $2 should be assigned to "bbb abc" while $60 should be assigned to the cost. Else, it does not follow the constraint.