COSC381-2024Fall / Todo-List-CLI

This project is a command-line to-do list manager, where users can add, view, and delete tasks. The project is incomplete, with room for improvements and bug fixes.
MIT License
0 stars 1 forks source link

Testing for method 11 (add_task_date) #82

Closed Sammynouadir closed 4 days ago

Sammynouadir commented 5 days ago

Testing add_taks_date function Inputs: task_number: integer due_date: string Returns: nothing Outputs: prints confirmation with due date Changes in States: The task due date is added to the specified task Constraints: task_number must be an integer task_number must be greater than 0, and also less than the total number of tasks due_date must be a string due_date must follow the format YYYY-MM-DD Error handling: If there are no tasks in the list, print a message stating there are no tasks to update, and do not add the due date to the task If the task number is invalid, print a statement letting the user know the number is invalid, and do not add the due date to the task If the date is in the incorrect format, print a statement letting the user know the date was not in the correct format, and do not add the due date to the task