yuzhongng / pe

0 stars 0 forks source link

Price of a dish can be infinity #7

Open yuzhongng opened 2 years ago

yuzhongng commented 2 years ago

When I edit a dish, i can make the dish infinity when i input "1e10000"

image.png

soc-se-bot commented 2 years ago

Team's Response

image.png

Teams believes that this is a form of extreme and unusual input provided by user.

In such case, programme continues to work as per normal, without any crashes or severe unusability.

Duplicate issues can be fixed from the same place in the code.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: The price of a dish should safeguard such input as it would affect the total price of the order. When ordering a dish price at infinity, the total price of the order would be at infinity too. This bug would cause inconvenience for the staff, restaurant and the consumer if they found out that the price of the order is infinity. The staff would then have to manually calculate the correct pricing for the order which will take out some time. Precious time is lost for the consumer, the staff, and the restaurant.