nus-cs2113-AY2425S1 / pe-dev-response

0 stars 0 forks source link

[JAR] Sales error #401

Open nus-pe-bot opened 1 day ago

nus-pe-bot commented 1 day ago

image.png

Wrong error message is shown here as I did put a non negative integer, but the error message should have displayed that there was a wrong delimitter regex


[original: nus-cs2113-AY2425S1/pe-interim#644] [original labels: severity.Low type.FunctionalityBug]

sarahchow03 commented 12 hours ago

Team's Response

The error message displays the expected behaviour, as mentioned in the UG, we state that "the parser will look between valid flags". Valid flags are then defined to be the delimiter "-", followed by a character deemed valid by the command (ie. "-a"). The program is not expected to recognise other delimiters that are not defined by the program.

Following this, the error message states "enter just a non-negative integer value", which is the expected output, as the user input for quantity is now "10000 /p 11.90". Here, the user has violated the requirement for the input to be just a non-negative integer value as, and thus, the appropriate error message has been displayed by our program.

Duplicate status (if any):

--