beetee17 / pe

0 stars 0 forks source link

Find above/ command does not return persons with equal debt amounts #2

Open beetee17 opened 2 years ago

beetee17 commented 2 years ago

In the documentation, it is stated that the find above/<money> "Looks for people who owe money for a debt above or equal to the monetary value "

However, find above/25 did not return me Alex Yeoh in this example.

Screenshot 2022-11-11 at 16.26.44.png

Screenshot 2022-11-11 at 16.26.28.png

soc-pe-bot commented 2 years ago

[IMPORTANT!: Please do not edit or reply to this comment using the GitHub UI. You can respond to it using CATcher during the next phase of the PE]

Team's Response

Since Alex has debts totalling $25, we assume that this is taken directly from the sample data provided, where Alex has a McDonald's debt of $5 and a Taxi debt of $20:

image.png

This is the correct behaviour and therefore not a bug, since Alex does not have any debt above $25 (both his debts are below $25 each). As mentioned in the find command section in the UG:

image.png

There is a command listdebtors with optional input money that allows you to search for people who owe more than a certain amount in total, which is the functionality you seem to be expecting.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: [replace this with your reason]