-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement filtering of contacts by number #56
Implement filtering of contacts by number #56
Conversation
Let's * implement FindByContact * change AddressBookParserTest, FindCommandParser unit tests * add unit test for FindByContact * tidy code for checkstyle
For FindByContactCommand and FindByNameCommand
Codecov ReportAll modified and coverable lines are covered by tests ✅
|
src/main/java/seedu/address/logic/commands/FindByContactCommand.java
Outdated
Show resolved
Hide resolved
/** | ||
* Contains integration tests (interaction with the Model) for {@code FindByContactCommand}. | ||
*/ | ||
public class FindByContactCommandTest { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good test coverage
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Finds all persons whose names " | ||
+ "contain any of the specified keywords (case-insensitive) and displays them as a list with indices.\n" | ||
+ "Parameters: KEYWORD [MORE_KEYWORDS]...\n" | ||
+ "Example: " + COMMAND_WORD + " alice bob charlie"; | ||
public FindByNameCommand(NameContainsKeywordsPredicate predicate) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep that works
Make the error message more appropriate for contact numbers
Test for the correct MESSAGE_USAGE
This is infuriatingly dumb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to go
Fixes #47