Closed KrashKart closed 2 weeks ago
Expected: As stated below, if I were to enter a date of birth 30-02-1950, the add-patient command should correct it to 29-02-1950:
add-patient
This should apply to 31-02-1950 as well.
This also occurs for most commands that handle dates.
Actual: However, the date of birth is not corrected automatically:
This occurs for 31-02-1950 as well:
And for other commands too.
Steps to reproduce:
add-patient n/Kennedy Koh p/91234567 e/kk@example.com a/456 Clementi Ave 3 d/30-02-1950 g/M t/elderly
Not sure if this is intended, but it is addressed explicitly in the UG and not implemented (behaviour differs). Perhaps you could either implement the "autocorrect" feature or not mention it in the UG at all and use the default restriction on dates.
Expected: As stated below, if I were to enter a date of birth 30-02-1950, the
add-patient
command should correct it to 29-02-1950:This should apply to 31-02-1950 as well.
This also occurs for most commands that handle dates.
Actual: However, the date of birth is not corrected automatically:
This occurs for 31-02-1950 as well:
And for other commands too.
Steps to reproduce:
add-patient n/Kennedy Koh p/91234567 e/kk@example.com a/456 Clementi Ave 3 d/30-02-1950 g/M t/elderly
Not sure if this is intended, but it is addressed explicitly in the UG and not implemented (behaviour differs). Perhaps you could either implement the "autocorrect" feature or not mention it in the UG at all and use the default restriction on dates.