Skip to content

bob: improve test descriptions re: absence of letters#1282

Merged
cmccandless merged 1 commit intoexercism:masterfrom
Cohen-Carlisle:bob-numbers-letters-test-name
Aug 2, 2018
Merged

bob: improve test descriptions re: absence of letters#1282
cmccandless merged 1 commit intoexercism:masterfrom
Cohen-Carlisle:bob-numbers-letters-test-name

Conversation

@Cohen-Carlisle
Copy link
Copy Markdown
Member

I ran across a solution that passed the tests but violated the spirit of
the tests. The student was checking for shouting by checking for:

  • the absence of lower case letters AND
  • (a string ending in ! OR
  • a string without numbers)

This means that "1,2,3!" would be shouting, but "JUST 1 NUMBER"
wouldn't, which seems to violate the spirit of tests titled:

  • shouting numbers
  • shouting with no exclamation mark

Should a test be added for this case, or is changing test descriptions to be more clear enough?

@rpottsoh rpottsoh changed the title improve test descriptions re: absence of letters bob: improve test descriptions re: absence of letters Aug 1, 2018
Copy link
Copy Markdown
Member

@rpottsoh rpottsoh left a comment

Choose a reason for hiding this comment

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

Please bump "version": to "1.2.1".

@rpottsoh rpottsoh dismissed their stale review August 1, 2018 15:51

need to change it...

@rpottsoh
Copy link
Copy Markdown
Member

rpottsoh commented Aug 1, 2018

The version will need to be changed to 1.3.0 if you end up adding new cases.

@Cohen-Carlisle
Copy link
Copy Markdown
Member Author

I could easily go either way. I just wanted to see what other people thought about adding new test cases given the same solution would still technically pass the tests. The test names should clue students in now that it's not the "correct" way, but not stop you from using the same logic.

@rpottsoh
Copy link
Copy Markdown
Member

rpottsoh commented Aug 2, 2018

@Cohen-Carlisle it appears as though you are able to merge this. The commits should squashed before the PR is merged.

I ran across a solution that passed the tests but violated the spirit of
the tests. The student was checking for shouting by checking for:
* the absence of lower case letters AND
* (a string ending in `!` OR
* a string without numbers)

This means that "1,2,3!" would be shouting, but "JUST 1 NUMBER"
wouldn't, which seems to violate the spirit of tests titled:
* shouting numbers
* shouting with no exclamation mark
@Cohen-Carlisle Cohen-Carlisle force-pushed the bob-numbers-letters-test-name branch from 27ca6a3 to 5e7ca4d Compare August 2, 2018 16:02
@Cohen-Carlisle
Copy link
Copy Markdown
Member Author

I actually cannot merge as I'm a member of exercism/alumni, but I've squashed the commits.
Maybe I should get reinstated soon, though 😆.

@cmccandless cmccandless merged commit 041d841 into exercism:master Aug 2, 2018
@cmccandless
Copy link
Copy Markdown
Contributor

@Cohen-Carlisle got you covered!

sshine added a commit to exercism/sml that referenced this pull request Oct 9, 2018
This includes:
 - 1.0.0 -> 1.1.0: "Calm down, I know what I'm doing!" in [1].
 - 1.1.0 -> 1.2.0: No-op in [2]
 - 1.2.0 -> 1.2.1: "no letters" in [3].
 - 1.2.1 -> 1.3.0: "I HATE THE DMV" in [4].
 - 1.3.0 -> 1.4.0: Grammatical error in testdata in [5].

[1]: exercism/problem-specifications#1025
[2]: exercism/problem-specifications#1056
[3]: exercism/problem-specifications#1282
[4]: exercism/problem-specifications#1293
[5]: exercism/problem-specifications#1319
ZapAnton added a commit to ZapAnton/rust that referenced this pull request Nov 20, 2018
Relevant PRs:
- exercism/problem-specifications#1282
- exercism/problem-specifications#1293
- exercism/problem-specifications#1319

Appart from the new tests, some old tests were renamed / got their input
value modified.
@Cohen-Carlisle Cohen-Carlisle deleted the bob-numbers-letters-test-name branch February 28, 2019 23:03
@Cohen-Carlisle Cohen-Carlisle restored the bob-numbers-letters-test-name branch February 28, 2019 23:03
@Cohen-Carlisle Cohen-Carlisle deleted the bob-numbers-letters-test-name branch February 28, 2019 23:04
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