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 |
…pes comments from example.php
There was a problem hiding this comment.
Thanks for taking this forward! Now comes the hard part 😄 - You will learn something about the Exercism practice exercise ecosystem...
The file .meta/tests.toml lists all the tests, that are in the canonical data JSON. That means, we don't have many of those tests, yet. And those we have do not use the values from canonical data.
Please sync the existing tests: Use the UUID to find the test data used in canonical data JSON and adjust our tests. Run the tests using composer test:run -- linked-list to see, if they still pass.
Then add the missing tests, one after the other. Name the test methods accordingly (test + camelCasedDescription). When you run the tests, and the new test fails, comment out the test method and mention that test in this Pull Request. We then have to discuss if breaking existing things is OK.
If you have any questions, please ask them here. Thanks for helping us!
|
It's definitely the hard part, lol, well, I'm happy to help and yes, I'll ask if I have any questions, thank you. |
…and comment out failing tests
|
HI @mk-mxp I've added the missing tests, synced the existing test values with the values in the canonical data and also commented out the tests that failed because the count and delete functions where not implemented. These are the tests descriptions that failed: count an empty list count a list with items count is correct after mutation popping to empty doesn't break the list shifting to empty doesn't break the list deletes the only element deletes the element with the specified value from the list deletes the element with the specified value from the list, re-assigns tail deletes the element with the specified value from the list, re-assigns head deletes the first of two elements deletes the second of two elements delete does not modify the list if the element is not found deletes only the first occurrence |
That looks like it is most of the exercise! The Track Build Status page says in "Practice Exercises" -> "...active practice exercises" that there is only 102 solutions to this exercise, yet. So I'd say, let's break the existing solutions and add all the tests. @A-O-Emmanuel Please uncomment the tests and adjust I hope to have time for a good review on the weekend. |
|
Hi @mk-mxp I can adjust the exmple.php to pass the tests, I'll do it |
mk-mxp
left a comment
There was a problem hiding this comment.
Wow, many thanks for the great contribution! Looking forward to the changes in example.php. I raised the rewarded reputation to "large" because of the amount of work involved. It looked so small in the beginning...
Most of the requested changes are "pedantic" method naming changes. We want to keep the description and the method names as close as possible to each other, because programmers tend to raise Pull Requests for the smallest things that can possibly get improved.
Thanks again for helping!
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>
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>
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>
|
Hi @mk-mxp I've adjusted example.php to pass the tests, please take a look and tell me if there's more to be done. Thank you |
mk-mxp
left a comment
There was a problem hiding this comment.
Thank you very much! Many people can now learn more about linked lists than before.
|
My pleasure! |
Synced
linked-listexercise usingconfiglet.Removed
strict_typescomments.Added and synced test metadata (
uuid/#TestDox) to tests.Added
linked-listtobin/auto-sync.txt(alphabetically sorted).