-
-
Notifications
You must be signed in to change notification settings - Fork 550
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
triangle: Add clarity to test descriptions #1483
Conversation
Proposed fix to exercism/csharp#1253 The current [Test] names confused me when I was doing the exercise. It was also difficult to see which tests failed, because of long method names combined with a small window with the test results.
Some things I considered but didn't do:
|
The changes I believe constitute a patch version change. I think bin/check_versions should have taken exception to the version not being changed and caused Travis CI to fail. @petertseng did Update: @petertseng it appears Travis CI did not run at all....
I think |
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.
The version should be bumped to indicate a patch change I believe. I just realized that Travis CI was not executed on this PR. @kytrinyx is there something going on here that should be addressed?
With #1473 in mind, perhaps the descriptions could be shortened a bit, e.g. (Just a thought, not objecting to the proposed change here if others approve it) |
Closed and reopened to trigger a Travis build. |
@rpottsoh from what you posted, wouldn't it be a major version since it renames a "property" (test type)? Or am I misunderstanding the nomenclature, and does it fall under "key formatting"? @SaschaMann while "the returned value is right below it" is true when looking at the Test.cs itself, the test methods themselves aren't in the same screen as the test results (which is when you're most interested in expected vs actual). Coming from the C#-track, the IDE has the test results in a different pane. If I do the recommend way of testing |
That seems like an issue with dotnet tooling, not one that the common test spec needs to solve. I referred to that issue because shortening descriptions seemed to be a common wish in it and, imo, |
I've re-read the documentation and changing the I've also removed the "expected result" to bring this more in line with the other exercises. Thanks for your feedback, @SaschaMann. |
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.
I think saying first, second, third is a little cleaner than (1) (2) (3). I like your changes to the case descriptions. I want to take these three a little further.
@Mehni I think this still falls under Ha! I see you posted a comment that makes this one moot. 😄 Thanks for taking the time to streamline this exercise for all of us. |
Co-Authored-By: Mehni <[email protected]>
ofc 😄 I think Exercism is one of the best ways to learn coding and wanted to contribute. |
If this PR is merged it should be squashed. This PR should remain open for a day or two to allow others a chance to comment and offer suggestions. If it is still open on March 24th I'll Squash and merge it. |
The current [Test] names confused me when I was doing the exercise. It was also difficult to see which tests failed, because of long test descriptions combined with a small window with the test results. This PR changes the "Returns true if the triangle is equilateral false if any side is unequal" style in favour of a pattern that follows "equilateral triangle returns false if any side is unequal". exercism/problem-specifications#1483 Note for the Crystal track: Since the the following case group descriptions do not appear in the test file (for example, as a `describe` or a `context`), test descriptions may be considered to be missing some context. However, this has always been the case, so this does not worsen the state of the world, only keep it about as bad as it always has been. https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L22 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L71 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L152
The current [Test] names confused me when I was doing the exercise. It was also difficult to see which tests failed, because of long test descriptions combined with a small window with the test results. This PR changes the "Returns true if the triangle is equilateral false if any side is unequal" style in favour of a pattern that follows "equilateral triangle returns false if any side is unequal". exercism/problem-specifications#1483 Note for the Crystal track: Since the the following case group descriptions do not appear in the test file (for example, as a `describe` or a `context`), test descriptions may be considered to be missing some context. However, this has always been the case, so this does not worsen the state of the world, only keep it about as bad as it always has been. https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L22 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L71 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L152
The current [Test] names confused me when I was doing the exercise. It was also difficult to see which tests failed, because of long test descriptions combined with a small window with the test results. This PR changes the "Returns true if the triangle is equilateral false if any side is unequal" style in favour of a pattern that follows "equilateral triangle returns false if any side is unequal". exercism/problem-specifications#1483 Note for the Crystal track: Since the the following case group descriptions do not appear in the test file (for example, as a `describe` or a `context`), test descriptions may be considered to be missing some context. However, this has always been the case, so this does not worsen the state of the world, only keep it about as bad as it always has been. https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L22 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L71 https://github.com/exercism/problem-specifications/blob/master/exercises/triangle/canonical-data.json#L152
Proposed fix to exercism/csharp#1253
The current [Test] names confused me when I was doing the exercise. It was also difficult to see which tests failed, because of long method names combined with a small window with the test results.
This PR changes the "Returns_true_if_the_triangle_is_equilateral_false_if_any_side_is_unequal" style in favour of a pattern that follows "equilateral_triangle_returns_false_if_any_side_is_unequal".