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 kindergarten-garden exercise #294

Merged
merged 8 commits into from
Oct 8, 2024
Merged

Add kindergarten-garden exercise #294

merged 8 commits into from
Oct 8, 2024

Conversation

0xNeshi
Copy link
Contributor

@0xNeshi 0xNeshi commented Oct 4, 2024

Closes #194

@0xNeshi 0xNeshi added x:module/practice-exercise Work on Practice Exercises x:type/content Work on content (e.g. exercises, concepts) x:rep/large Large amount of reputation x:action/create Work on something from scratch x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises) labels Oct 4, 2024
@0xNeshi 0xNeshi self-assigned this Oct 4, 2024
Copy link

github-actions bot commented Oct 4, 2024

Hello 👋 Thanks for your PR.

This repo does not currently have dedicated maintainers. Our cross-track maintainers team will attempt to review and merge your PR, but it will likely take longer for your PR to be reviewed.

If you enjoy contributing to Exercism and have a track-record of doing so successfully, you might like to become an Exercism maintainer for this track.

Please feel free to ask any questions, or chat to us about anything to do with this PR or the reviewing process on the Exercism forum.

(cc @exercism/cross-track-maintainers)


#[test]
#[ignore]
fn second_students_garden() {
Copy link
Member

Choose a reason for hiding this comment

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

This test name is pretty similar to the one before it. To avoid confusion, I'd consider perhaps fn multiple_students_bobs_garden () {. The next test can then be fn multiple_students_charlies_garden () {.

Copy link
Contributor Author

@0xNeshi 0xNeshi Oct 8, 2024

Choose a reason for hiding this comment

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

I usually name tests after canonical data's description. For these two, the descriptions were respectively "second student's garden" and "third student's garden", see canonical-data.json

Copy link
Member

Choose a reason for hiding this comment

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

Seems like an enum to represent the plants might be appropriate here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good suggestion, I extracted students into an enum too, see 6eb635e

Copy link
Member

@BNAndras BNAndras left a comment

Choose a reason for hiding this comment

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

Meant to approve. My two comments are just suggestions.

@0xNeshi
Copy link
Contributor Author

0xNeshi commented Oct 8, 2024

@BNAndras let me know if you like these new enum changes, and we can merge

@BNAndras BNAndras merged commit c632c69 into main Oct 8, 2024
6 checks passed
@BNAndras BNAndras deleted the kindergarten-garden branch October 8, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/create Work on something from scratch x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:type/coding Write code that is not student-facing content (e.g. test-runners, generators, but not exercises) x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Practice Exercise: kindergarten-garden
2 participants