-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
Sync: Bob #806
Sync: Bob #806
Conversation
This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested. If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.
For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping |
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.
Thanks a lot for this! Some inputs are still out of sync.
For better readability in the online editor, you may optionally inline the object instantiation, apply the Arrange-Act-Assert pattern and keep lines shorter than about 60 characters like this:
public function testStatingSomething(): void
{
$input = "Tom-ay-to, tom-aaaah-to.";
$expected = "Whatever.";
$subject = new Bob();
$actual = $subject->respondTo($input)
$this->assertEquals($expected, $actual);
}
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Co-authored-by: mk-mxp <55182845+mk-mxp@users.noreply.github.com>
Thanks for you input, i'll look into it. |
I don't know how the test runner would deal with it, but I would prefer personally to have a constant for each answer, to avoid risk of typos and minimize work. const ANSWER_WHATEVER = "Whatever."
const ANSWER_SURE = "Sure."
const ANSWER_FINE = "Fine. Be that way!"
... |
In the online editor feedback, you will never see the string such constant stands for. So, please, keep the string duplicated, even if it is against all rules of real production code. |
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.
Thanks for syncing this exercise!
@mk-mxp Can you please assign the correct labels to the latest PRs. |
Sorry, I sometimes quickly check in to merge and forget the boring details... |
No worries, I would expect at least some of the labels could be automated, based on lines changed e.g. with the x:size labels. |
Resolves #805