I am currently working on the exercise “Allergies”, and my code passes every test except the last one. In this test I am given an allergy score of 509 and must manipulate it in order to return the correct allergies associated with the modified score.
Following the example in the README of the exercise, I took the modulo of 509 and 256 and then used that value to calculate my allergies. Based on the value I received (253), I should have almost all the allergies except “peanuts”. However, the test fails as it says I should only have the following.
const std::unordered_set<std::string> non_allergen = {“eggs”, “shellfish”, “strawberries”, “tomatoes”};
I checked the exercise on the Clojure track and found that the test associated with the scenario described above expects to see every allergen except peanuts. Is there something I am doing incorrectly, or is there an error in the final test?
I would greatly appreciate any responses.