Repository navigation
pangram: implement missing test [Fix #314] - #315
Conversation
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great, thanks @michaelspets! Just one comment about the name :)
|
|
||
| @Ignore | ||
| @Test | ||
| public void upperAndLowerCaseVersionsOfTheSameCharacterShouldNotBeCountedSeparatelyIsNotPangram() { |
There was a problem hiding this comment.
Sorry to be very picky and possibly confusing, but I don't think this one needs IsNotPangram at the end. The other tests are specifying that some kinds of phrases are or aren't recognized as pangrams, e.g. pangram in another alphabet is not recognized as a pangram whereas an all lowercase pangram is. However, this test is checking for a common error in the implementation, i.e. counting upper and lowercase letters as different letters. Therefore I think upperAndLowerCaseVersionsOfTheSameCharacterShouldNotBeCountedSeparately is an okay name :) I hope that makes sense! :)
There was a problem hiding this comment.
Ok I can see what you meen but I can't understand what we actually test in this case. The test is supposed to check if same chars are counted seperately but I don't see how we check that in this test... For example we have "pangram with mixed case and punctuation" test case that checks if a pangram with upper and lower case chars is considered true by counting upper and lowercase letters but I think that we don't count anything here. So my question is "Are we actually test anything with this test?"
|
Trivia: this resulted from my very first Exercism contribution of note over in xkotlin! ♻️ |
FridaTveit
left a comment
There was a problem hiding this comment.
Looks great, thank you @michaelspets! :)
No description provided.