Conversation
|
Thank you for contributing to Based on the files changed in this PR, it would be good to pay attention to the following details when reviewing the PR:
Automated comment created by PR Commenter 🤖. |
|
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.
Pull request overview
Syncs the Elixir perfect-numbers exercise with the latest problem-specifications metadata by updating the canonical test descriptions and adding the newly introduced abundant-number edge case.
Changes:
- Added a new (pending) ExUnit test for classifying a perfect-square abundant number (196).
- Updated
.meta/tests.tomldescriptions to the latest configlet-generated, hierarchical format and included the new test UUID/description.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| exercises/practice/perfect-numbers/test/perfect_numbers_test.exs | Adds the new perfect-square abundant classification test case (pending). |
| exercises/practice/perfect-numbers/.meta/tests.toml | Updates configlet-generated descriptions and adds the new canonical test entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| [72445cee-660c-4d75-8506-6c40089dc302] | ||
| description = "Zero is rejected (not a natural number)" | ||
| description = "Invalid inputs -> Zero is rejected (as it is not a positive integer)" | ||
|
|
||
| [2d72ce2c-6802-49ac-8ece-c790ba3dae13] | ||
| description = "Negative integer is rejected (not a natural number)" | ||
| description = "Invalid inputs -> Negative integer is rejected (as it is not a positive integer)" |
There was a problem hiding this comment.
The tests.toml descriptions for the invalid input cases were updated ("as it is not a positive integer"), but the corresponding ExUnit test names in test/perfect_numbers_test.exs still use the old wording ("not a natural number"). To keep the exercise in sync (and consistent with other exercises where the leaf description matches the test string), update those two test names to match the updated tests.toml descriptions.
|
Should I add [no important files changed]? When I synchronised the tests, all the descriptions changed. fixes #1615 |
|
Nice PR, thank you!
No, in general when adding a new test it makes sense to run it for all students.
The In doubt, it's better to align with the problem specs so let's sync the test descriptions. I don't really think it's worth adding the first parts "Invalid inputs -> " because they seem more like classifications for the problem specs maintainers, but the students need the last part "Zero is rejected (as it is not a positive integer)", so if you don't mind, let's update those. I think only two tests are concerned. Please double check that the tests content does match with the description.
Did copilot mention something about this file? I don't think we need to touch it. |
|
I have corrected the descriptions, but I have left the error message unchanged, otherwise all the solutions will no longer be valid. It seems pointless to invalidate all the solutions for this minor detail.
I would have modified it to keep the changes consistent, but as mentioned above, I don't think that's necessary. |
jiegillet
left a comment
There was a problem hiding this comment.
Looks great, thank you!
Relates to #1027
https://forum.exercism.org/t/adding-exercises-to-elixir-track/33067/3