labs icon indicating copy to clipboard operation
labs copied to clipboard

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

Open TumblingCoconut opened this issue 2 years ago • 0 comments

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.

TumblingCoconut avatar Sep 01 '22 22:09 TumblingCoconut