Skip to content

Clarify handling scores greater than 255 in allergies.#389

Merged
kytrinyx merged 1 commit intoexercism:masterfrom
jtigger:fix-allergies-readme
Oct 1, 2016
Merged

Clarify handling scores greater than 255 in allergies.#389
kytrinyx merged 1 commit intoexercism:masterfrom
jtigger:fix-allergies-readme

Conversation

@jtigger
Copy link
Copy Markdown
Contributor

@jtigger jtigger commented Oct 1, 2016

No description provided.

@jtigger
Copy link
Copy Markdown
Contributor Author

jtigger commented Oct 1, 2016

Addresses #224.

Expressed in solution-agnostic terms.

@IanWhitney
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

Insti commented Oct 1, 2016

257 would mean allergic to eggs (1)

@jtigger
Copy link
Copy Markdown
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
Copy Markdown
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 jtigger force-pushed the fix-allergies-readme branch from d8886ec to fa6a47b Compare October 1, 2016 15:15
@jtigger jtigger force-pushed the fix-allergies-readme branch from fa6a47b to 00089c3 Compare October 1, 2016 15:16
@jtigger
Copy link
Copy Markdown
Contributor Author

jtigger commented Oct 1, 2016

Added example to the description. Thanks, @IanWhitney.

@kytrinyx
Copy link
Copy Markdown
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.

7 participants