-
-
Notifications
You must be signed in to change notification settings - Fork 137
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 Knapsack #787
Sync Knapsack #787
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 |
@fejan-malek Do you have time to re-structure the tests like this: public function testNoItems(): void
{
$expected = 0;
$maximumWeight = 100;
$items = [];
$knapsack = new Knapsack();
$actual = $knapsack->getMaximumValue($maximumWeight, $items);
$this->assertEquals($expected, $actual);
} This would greatly enhance readability for students using the online editor. The current test methods do not contain the object creation and the long lines require scolling horizontally. If you have no time, I will do that after merging your PR. That is OK, we all have a life besides Exercism. |
Yes, I am a little busy with a project at work. Do we need to implement this in all test cases or only this single test case? |
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.
Perfect! Thank you very much. And it's not "late", it's just in time 😃
#782
This PR contains no major changes except
@testdox
updated in test case file.