zhou-colla / pe

0 stars 0 forks source link

The Function Appointment-list Did not Account for Negative Integer Input for Time #2

Open zhou-colla opened 2 weeks ago

zhou-colla commented 2 weeks ago

Description: The program hang when the user input a date format where Time is a negative integer for the command appointment-list. E.g. -1200

Steps to reproduce

  1. Run a different function with output result. E.g. "payment John Doe d/2024-10-14 1200 pay/unpaid"
  2. Run appointment-list d/2024-10-18 1-000
  3. Observe the result, the result will remain unchanged. E.g. sane as the result produced by "payment John Doe d/2024-10-14 1200 pay/unpaid"

Problem: Maybe we should let the program shows an exception and prompt the user for the right date format instead of having the terminal result staying idle?

Screenshot:

image.png

nus-se-bot commented 1 week ago

Your response not required for this bug as the team has accepted the bug as it is.