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

Clarify handling scores greater than 255 in allergies. #389

Merged
merged 1 commit into from
Oct 1, 2016

Conversation

jtigger
Copy link
Contributor

@jtigger jtigger commented Oct 1, 2016

No description provided.

@jtigger
Copy link
Contributor Author

jtigger commented Oct 1, 2016

Addresses #224.

Expressed in solution-agnostic terms.

@IanWhitney
Copy link
Contributor

Just to make sure I understand, this change would mean that a test of 257 would be allergic to all the items mentioned in the readme?

@NobbZ
Copy link
Member

NobbZ commented Oct 1, 2016

As I understand it the read me asks for a simple modulo equivalency.

Ian Whitney notifications@github.com schrieb am Sa., 1. Okt. 2016 14:56:

Just to make sure I understand, this change would mean that a test of 257
would be allergic to all the items mentioned in the readme?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#389 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADmR-EheimSoR6rCyKArw5q2QxulUYxks5qvliUgaJpZM4KLn79
.

@Insti
Copy link
Contributor

Insti commented Oct 1, 2016

257 would mean allergic to eggs (1)

@jtigger
Copy link
Contributor Author

jtigger commented Oct 1, 2016

The modification of the description plus the final test in suite implied by the canonical-data.json would mean that a score of 257 would mean some uncodified allergen (256) plus eggs(1), the former to be ignored/masked/modulo'ed.

@IanWhitney
Copy link
Contributor

Ok. That's not how this change reads for me.

Note: a given score may include allergens not listed above (i.e. allergens that score 256, 512, 1024, etc.). Your program should ignore those components of the score

The "ignore those components" could be clearer. Maybe:

Note: Allergens with higher scores (i.e., 256, 512, 1024) should be ignored. For example, a score of 257 would be allergic to just Eggs.

@jtigger
Copy link
Contributor Author

jtigger commented Oct 1, 2016

Added example to the description. Thanks, @IanWhitney.

@kytrinyx
Copy link
Member

kytrinyx commented Oct 1, 2016

This looks good to me. Thanks for hashing out the details on this!

@kytrinyx kytrinyx merged commit c5ec354 into exercism:master Oct 1, 2016
emcoding pushed a commit that referenced this pull request Nov 19, 2018
Change `students_by_grade` data structure. (+more) Closes #389
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.

None yet

7 participants