Skip to content

Commit

Permalink
Add enhancement to check for valid index
Browse files Browse the repository at this point in the history
  • Loading branch information
rxchell committed Nov 11, 2024
1 parent 9a9d257 commit ed48614
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/DeveloperGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,15 @@ Team size: 5

1.


4. **Modify index parsing to check for valid indexes**
* **Flaw:** For `edit` commands utilising `INDEX` as a field, when users input an index larger than the
list size of `Person` or `Appointment`, the application does not check for the validity of the index.
* **Enhancement:** Implement a check to ensure that the index provided by the user is within the valid range
of the list size. If the index is invalid, display an error message to the user.
* **Sample Input:** `edit person 100000`
* **Expected Output:** The result display box shows `Invalid index! Please enter a valid index within the list size.`

<br>

--------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit ed48614

Please sign in to comment.