avellinwong01 / pe

0 stars 0 forks source link

Different behaviour when almost similar (invalid) inputs are entered for add workout #8

Open avellinwong01 opened 2 years ago

avellinwong01 commented 2 years ago

image.png

When optional attributes /d and /t are keyed in without a space in between, the program accepts the input as long as the other attributes are correctly keyed in. But when /d and /t are keyed in with a space in between, the program rejects the input. I think the behaviour should be more consistent since the inputs are almost identical

nus-se-script commented 2 years ago

Team's Response

The separators are /d and /t not /d/t.

Using /d/t causes the program to be unable to detected any valid /d and /t separators, thus assuming the systems current date and time and successfully adding.

Next /d and /t were used in the correct manner but not having any date and time following the separators will make the program try and parse an empty string, which fails, thus the error message regarding the date/time format is output.

Items for the Tester to Verify

:question: Issue response

Team chose [response.Rejected]

Reason for disagreement: [replace this with your explanation]


:question: Issue severity

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

Reason for disagreement: [replace this with your explanation]