
Input: add amt/100 t/31-02-2023 cat/cat curr/usd
Expected Output: Invalid date.
Actual Output: The following expense is successfully added:
SGD100.00 cat:cat date:28/02/2023
Reason: There should not be a 31 days in February. Although the program take it as the last day of Feb (28 Feb), would still have expected Invalid Date as an error. This works with 30 days as well.
Input: add amt/100 t/31-02-2023 cat/cat curr/usd
Expected Output: Invalid date.
Actual Output: The following expense is successfully added:
SGD100.00 cat:cat date:28/02/2023
Reason: There should not be a 31 days in February. Although the program take it as the last day of Feb (28 Feb), would still have expected Invalid Date as an error. This works with 30 days as well.