Skip to content

[W5.7][W17-3] Pakorn Ueareeworakul#3

Open
PakornUe wants to merge 6 commits into
masterfrom
sort-command
Open

[W5.7][W17-3] Pakorn Ueareeworakul#3
PakornUe wants to merge 6 commits into
masterfrom
sort-command

Conversation

@PakornUe
Copy link
Copy Markdown
Owner

@PakornUe PakornUe commented Sep 9, 2018

Sort command is not present in current version of the software.

Since sorting makes the list easier to read especially when the number people in the address book is high.

So let's add a sort command.

Currently, the program does not recognize the word "sort" as a command.

As we are going to implement a sort command, this keyword should
be recognized and redirected somewhere for testing.

So let's add a case to recognize the sort command.
Currently, there is no way to sort the address book.

As we are going to implement a sort command, there should be a way to
sort the address book by name.

So let's add a method to sort the address book.
Currently there is no test available for the sort method in AddressBook.

This might prevent us from noticing errors in this method.

So let's add a JUnit test.
Currently keying in "sort" is equivalent to keying in "list".

This is not the intended behaviour as "sort" is meant to be a command
to sort the address book.

So let's add and update the JUnit test to make "sort" actually sort the
address book.
Currently there are no tests for the sort command.

This may cause bugs to pass through.

So let's add JUnit and I/O tests for the sort command
Currently there are no documentations for the sort command.

This might prevent users from knowing that there is a command that allow
them to sort the Address Book.

So let's add documentation for the sort command.
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.

1 participant