-
-
Notifications
You must be signed in to change notification settings - Fork 555
bob: improve test descriptions re: absence of letters #1282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bob: improve test descriptions re: absence of letters #1282
Conversation
There was a problem hiding this 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".
The version will need to be changed to 1.3.0 if you end up adding new cases. |
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. |
@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
27ca6a3
to
5e7ca4d
Compare
I actually cannot merge as I'm a member of exercism/alumni, but I've squashed the commits. |
@Cohen-Carlisle got you covered! |
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
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.
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:
!
ORThis means that "1,2,3!" would be shouting, but "JUST 1 NUMBER"
wouldn't, which seems to violate the spirit of tests titled:
Should a test be added for this case, or is changing test descriptions to be more clear enough?