Skip to content

pangram: implement missing test [Fix #314] - #315

Merged
FridaTveit merged 2 commits into
exercism:masterfrom
michaelspets:pangram314
Feb 22, 2017
Merged

FridaTveit merged 2 commits into
exercism:masterfrom
michaelspets:pangram314

Conversation

@michaelspets

Copy link
Copy Markdown
Contributor

No description provided.

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks @michaelspets! Just one comment about the name :)


@Ignore
@Test
public void upperAndLowerCaseVersionsOfTheSameCharacterShouldNotBeCountedSeparatelyIsNotPangram() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?"

@stkent

stkent commented Feb 21, 2017

Copy link
Copy Markdown
Contributor

Trivia: this resulted from my very first Exercism contribution of note over in xkotlin! ♻️

@FridaTveit FridaTveit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you @michaelspets! :)

@FridaTveit
FridaTveit merged commit fc9a093 into exercism:master Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants