exercism / go

Exercism exercises in Go.
https://exercism.org/tracks/go
MIT License
973 stars 649 forks source link

Add an extra test case catching edge case from using integer division #2640

Closed Dirklectisch closed 1 year ago

Dirklectisch commented 1 year ago

While checking out some of the alternative solutions when working through the curriculum I realised the top answers to this exercise are actually defective. They don't take into account that integer division in Go rounds the number down to the natural number.

This PR introduces a test that should force students into considering these edge cases. Note that learning about integer division is a prerequisite to reaching this exercise.

github-actions[bot] commented 1 year ago

Hello. Thanks for opening a PR on Exercism. We are currently in a phase of our journey where we have paused community contributions to allow us to take a breather and redesign our community model. You can learn more in this blog post. As such, all issues and PRs in this repository are being automatically closed.

That doesn't mean we're not interested in your ideas, or that if you're stuck on something we don't want to help. The best place to discuss things is with our community on the Exercism Community Forum. You can use this link to copy this into a new topic there.


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.