When using the find project command to search for projects with a specific keyword, such as duke, the application incorrectly prints '2 persons listed!' instead '2 projects listed!'. This behaviour is unexpected and does not provide users with the correct print message.
Steps to Reproduce
Open the application.
Add a project by entering 'add project Duke'.
Add another project by entering 'add project Duke chatbot`.
Enter the command find project duke.
Observe the output provided by the application.
Expected
When using the find project command with a keyword, such as duke, the application should return a list of projects containing that keyword in their names. It should print out '2 projects listed!'
Actual
The application correctly returns a list of projects but it prints out '2 persons listed!'
Note
This discrepancy in the print message can lead to confusion for users, as it provides incorrect information about the search results. Users may mistakenly believe that the search returned persons instead of projects. Correcting the print message to accurately reflect the search results will enhance the clarity and usability of the find project command.
Description
When using the
find project
command to search for projects with a specific keyword, such asduke
, the application incorrectly prints '2 persons listed!' instead '2 projects listed!'. This behaviour is unexpected and does not provide users with the correct print message.Steps to Reproduce
find project duke
.Expected
When using the
find project
command with a keyword, such asduke
, the application should return a list of projects containing that keyword in their names. It should print out '2 projects listed!'Actual
The application correctly returns a list of projects but it prints out '2 persons listed!'
Note
This discrepancy in the print message can lead to confusion for users, as it provides incorrect information about the search results. Users may mistakenly believe that the search returned persons instead of projects. Correcting the print message to accurately reflect the search results will enhance the clarity and usability of the find project command.