Skip to content
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

Merged

Conversation

elstonayx
Copy link

@elstonayx elstonayx commented Oct 16, 2018

Resolves #74

Modified AddressBookParser to accept CommandSuggestion in the default case and return the message into ParseException
@jitwei98 jitwei98 modified the milestones: v1.3, v1.2 Oct 16, 2018
@jitwei98
Copy link
Collaborator

jitwei98 commented Oct 16, 2018

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/

@elstonayx elstonayx self-assigned this Oct 16, 2018
@jitwei98 jitwei98 modified the milestones: v1.2, mid v1.3 Oct 16, 2018
@linnnruoo linnnruoo merged commit c770f9a into CS2113-AY1819S1-W12-1:master Oct 17, 2018
* 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.";
Copy link
Collaborator

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() {
Copy link
Collaborator

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants