Currently we define a valid integer to be a positive integer in the error message
If you enter a number more than 2147483647. It will give the error message
Invalid command format!
delete_p: Deletes the patient identified by the index number used in the displayed patient list.
Parameters: INDEX (must be a positive integer)
Example: delete_p 2
However, index more than 2147483647 is indeed a valid integer and should return:
The patient index provided is invalid
Therefore the error message should more accurately capture the constraint of INDEX by stating it is:
(must be a positive integer and less than 2147483648)
Currently we define a valid integer to be a positive integer in the error message
If you enter a number more than 2147483647. It will give the error message
However, index more than 2147483647 is indeed a valid integer and should return:
Therefore the error message should more accurately capture the constraint of INDEX by stating it is: (must be a positive integer and less than 2147483648)