nus-cs2113-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Wrong exception handling case #3062

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

Issue description When inputing commands with wrong delimiter, message got registered wrong date.

Steps to reproduce the issue 1.add class /n Math class /s 2020-10-28 1000 /ee 2020-10-28 1100 2.Press enter

What’s the expected result? Exception of wrong delimiter detected

What’s the actual result? Application detected as wrong date format image.png


[original: nus-cs2113-AY2021S1/pe-interim#3057]

durianpancakes commented 3 years ago

Team's Response

Hi! Thank you for bringing this issue up. Unfortunately, the way we parse inputs is based on the delimiters '/n', '/s' and '/e'. As you entered '/ee', the end date time parsed is 'e 2020-10-28 1100', which is not in the format "yyyy-mm-dd HHmm". Hence, the error message given is correct.

Duplicate status (if any):

--