Skip to content

Allergies "invalid" input test is confusing #275

@samjonester

Description

@samjonester

I'm opening this issue for discussion, as I'm not sure what the best solution is, and would like some feedback before opening a PR.

The test case below is confusing. It doesn't make sense why the expected response for an "invalid" input is all by one of the allowed data types. If we're going to expect error handling of this manner, then at a minimum, it should be documented better in the Readme. I'd prefer to just drop this test case, as I don't think it adds value to this exercise, though.

testCase "ignore non allergen score parts" $
    [ Eggs, Shellfish, Strawberries, Tomatoes, Chocolate
    , Pollen, Cats ] @=? allergies 509

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions