Skip to content

Issue #253: grade school improvements#271

Merged
matthewmorgan merged 5 commits into
exercism:masterfrom
davethomas11:ISSUE-253/grade_school_improvements
Jan 30, 2017
Merged

Issue #253: grade school improvements#271
matthewmorgan merged 5 commits into
exercism:masterfrom
davethomas11:ISSUE-253/grade_school_improvements

Conversation

@davethomas11
Copy link
Copy Markdown
Contributor

No description provided.

FridaTveit and others added 4 commits January 21, 2017 13:15
….db() function, added numberOfStudents functions and renamed the sort function to studentsByGradeAlphabetical. Added test to check that grade() gets the students in the order they were inserted. Removed getsStudentsInAGrade() test as what it was testing was already being covered by the tests before it.
…broader range of implementations. Currently users are hindered into return the type HashMap<Integer, List<String>. This test update will check the order of any Map that maps to any Collection value type. This opens the doors for more possible types of solutions.
…3/grade_school_improvements

This takes the more generic approach I introduced in the previous commit
and applies it to the re-structuring and new tests introduced by
frida/ImproveGradeSchool

I've opted to remove the @test public void
gradeReturnsStudentsInTheOrderTheyWereInserted()

I've noticed some users have prefered to do the sorting on add.
Please discuss, and if this is something that should be
enforced I will add it back in. Making sure add order is
maintained.
@davethomas11 davethomas11 changed the title Issue 253/grade school improvements Issue #253: grade school improvements Jan 24, 2017
@matthewmorgan
Copy link
Copy Markdown
Contributor

@davethomas11 looks like we have some merge conflicts due to merging previous PRs. Would you mind resolving them and pushing again, or LMK and I can help with that.

@davethomas11
Copy link
Copy Markdown
Contributor Author

@matthewmorgan Resolved the conflicts


Map schoolStudents = school.studentsByGradeAlphabetical();
for (Map.Entry<?, Matcher> entry : sortedStudents.entrySet()) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I like this! Took me a minute to figure out what was going on, honestly.

@matthewmorgan matthewmorgan merged commit 7bb120f into exercism:master Jan 30, 2017
@matthewmorgan
Copy link
Copy Markdown
Contributor

@davethomas11 Thanks again!

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