Skip to content

Lab2 Scrabble doesn't have a test for the first and last letter of the alphabet #56

Open
@TumblingCoconut

Description

@TumblingCoconut

I had submitted the lab yesterday because it initially passed all of the tests, but today while referencing back to it I realized a mistake that ignores z in calculating the score. The if statement that I used to check for letters looks at the lowercase ascii values was written as such letter > 96 && letter < 122 . I had fixed the issue for the letter a, but forgotten for the letter z.

There should be a test case for the first and last letter because those are the letters that would be most likely left out in the declared range by accident.

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