thaddyyz / pe

0 stars 0 forks source link

e. Accepts wrong input as price is ’11.d’ but shows error if price is ‘1.a’ #7

Open thaddyyz opened 3 years ago

thaddyyz commented 3 years ago

image.png

soc-se-bot commented 3 years ago

Team's Response

Thanks for the feedback.

This was an unintended feature, as the parser seems to be able to convert the literal '11.d' into a float of 11.0. Hence, '1.a' wasn't accepted. For reference, please refer to the link below.

https://stackoverflow.com/questions/27368422/java-what-is-1d/27368444

We have accepted your report, but have moved the severity to VeryLow.

Items for the Tester to Verify

:question: Issue severity

Team chose [severity.VeryLow] Originally [severity.Medium]

Reason for disagreement: the severity shouldnt be low as this affects the function of the program due to the wrong input. Take note that very low only applies to cosmetic issues bases on the instructions.

image.png

It should be medium severity as it can cause occasional inconvenience to users as they might not want to enter 11.0 when they accidentally types 11.d.

image.png