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

Add new test for grade-school exersice #1204

Merged
merged 3 commits into from
Jan 9, 2024

Conversation

Grenkin1988
Copy link
Contributor

Hello,

Exercise have this description:

Get a sorted list of all students in all grades. Grades should sort as 1, 2, 3, etc., and students within a grade should be sorted alphabetically by name.
"Who all is enrolled in school right now?"
"Let me think. We have Anna, Barb, and Charlie in grade 1, Alex, Peter, and Zoe in grade 2 and Jim in grade 5. So the answer is: Anna, Barb, Charlie, Alex, Peter, Zoe and Jim"

Given that all tests are using add function as part of the school preparation, we never test that roster function handles the case when input school was not sorted.

Copy link
Contributor

github-actions bot commented Jan 6, 2024

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Jan 6, 2024
@ErikSchierboom ErikSchierboom reopened this Jan 9, 2024
@ErikSchierboom
Copy link
Member

Thanks for the PR, but I'm not sure we should be merging this. The problem with the newly added test is that it forces an implementation upon the student. We deliberately don't force the student to use a map, as they're then free to implement as they see fit.

@Grenkin1988
Copy link
Contributor Author

Thanks for the PR, but I'm not sure we should be merging this. The problem with the newly added test is that it forces an implementation upon the student. We deliberately don't force the student to use a map, as they're then free to implement as they see fit.

Sorry I do not 100% understand this. Do you mean that it is OK for student to remove type alias and do something else instead?

@ErikSchierboom
Copy link
Member

Oh the type alias is still there? I thought I had removed that 😕 It's fine then!

@ErikSchierboom ErikSchierboom merged commit 2226b0a into exercism:main Jan 9, 2024
4 of 6 checks passed
@Grenkin1988
Copy link
Contributor Author

Yes, it uses type School = Map<int, string list>

@Grenkin1988 Grenkin1988 deleted the grade-school-new-test branch January 9, 2024 08:41
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.

2 participants