-
Notifications
You must be signed in to change notification settings - Fork 7
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
Added Basic Suggest Corrections Features and Test Cases #73
Added Basic Suggest Corrections Features and Test Cases #73
Conversation
Modified AddressBookParser to accept CommandSuggestion in the default case and return the message into ParseException
Added new CommandSuggestionTest class
You can add something like "Resolves #74" to your PR description such that the issue related to this will be closed immediately once this PR is merged. Ref: https://help.github.com/articles/closing-issues-using-keywords/ |
* Suggests a command with the closest match to the inputted string. | ||
*/ | ||
public class CommandSuggestion { | ||
public static final String SUGGESTION_NOT_IMPLEMENTED = "Suggestion not implemented yet."; |
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.
Can this be declared as private instead since there's a returnSuggestion
public class CommandSuggestion { | ||
public static final String SUGGESTION_NOT_IMPLEMENTED = "Suggestion not implemented yet."; | ||
|
||
public String returnSuggestion() { |
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.
Normally getters are named as getSomething()
Resolves #74