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

[W5.11r] [W13-B4] Natania Djohari #774

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

natania-d
Copy link

Add sort command

@natania-d natania-d changed the title [W5.11r] Natania Djohari [W5.11r] [W13-B4] Natania Djohari Mar 9, 2018
Copy link

@brandonyeoxg brandonyeoxg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@natania-d Some comments added. Please close the PR after reading comments.

@@ -38,6 +38,10 @@ Examples:
Shows a list of all persons in the address book.<br>
Format: `list`

## Sorting all persons : `sort`
Sorts a list of all persons in lexicographical order. <br>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the sort command also displays the resulting list of sorted persons, it would be meaningful to document this behaviour too =).

@@ -201,6 +201,24 @@ public void execute_list_showsAllPersons() throws Exception {
expectedList);
}

@Test
public void execute_sort() throws Exception {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job adding in the corresponding test for the feature! =)

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

Successfully merging this pull request may close these issues.

4 participants