-
Notifications
You must be signed in to change notification settings - Fork 518
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
Logic behind an allergies test #65
Comments
I don't quite remember what this test was supposed to do due to lack of documentation and from being a translation from some other language. The score can be the sum of all the Allergen index values (starting at 1) which would be equal to 255 and that test is covered. With a value of 257, we get a result that's essentially Allergies(1) (256 counts as 0). Allergies(258) would be Allergies(2) and so on... Sorry that i can't be of more help than this. |
That would make sense if your system's |
The idea behind this exercise was to introduce the idea of bitmasks. Beyond that I can't remember the details. |
Wow, that part went completely over my head. |
@adolfosilva
What is the logic behind this test?
I'd understand if this test expected an empty vector since the score cannot be constructed out of a sum of
Allergen
values, by I can't figure out whyAllergen::Eggs
are expected to get through.The text was updated successfully, but these errors were encountered: