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

off-by-1 error in TestFixBirdCount of bird_watcher_test (or problem description). #2833

Closed
jrpilat opened this issue Sep 15, 2024 · 1 comment

Comments

@jrpilat
Copy link

jrpilat commented Sep 15, 2024

The description for Problem 3 of the Bird Watcher go exercise states,

You realized that all the time you were trying to keep track of the birds, there was one bird that was hiding in a far corner of the garden.

You figured out that this bird always spent every second day in your garden.

This means that the 1st day, the bird was not in the garden, the 2nd day it was, the 3rd day it was not, the 4th day it was, and so on and so forth.

bird_watcher_test, however, is coded to test something different: It expects that the 1st day, the bird was in the garden, the 2nd day it was not, the 3rd day it was, the 4th day it was not:
https://github.com/exercism/go/blob/main/exercises/concept/bird-watcher/bird_watcher_test.go

Thus, either the problem description or the test is off by 1. I'm not sure which of the 2 y'all prefer to change.

Copy link
Contributor

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

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

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

No branches or pull requests

1 participant