Skip to content

Implemented all "Phone Number" problems from the canonical test data. (#465) #472

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

Merged
merged 10 commits into from
Apr 27, 2025

Conversation

borderite
Copy link
Contributor

I have revised the phone-number-test.el to include all problems from the canonical test data and correct the three track-specific problems.

- Revised the following tests using the canonical test data.

    cleans-number-test
    cleans-numbers-with-dots-test
    valid-when-11-digits-and-first-is-1-test

- Revised the following tests specific for "Phone Number" to conform
the requirements for phone numbers.

    area-code-test
    pprint-test
    pprint-full-us-phone-number-test
…#465)

- The track-specific three problems are still included, but their
solutions have been corrected.
Copy link

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.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

The difficulty of "phone number" is reverted back to 2.
@borderite borderite force-pushed the phone-number-tests-fix branch 2 times, most recently from ad90fc2 to 1dc6672 Compare April 26, 2025 13:19
- The tests expecting errors now check custom errors instead of error
messages.

- The example test has been modified so that it passes the modified tests.
Copy link
Contributor

@fapdash fapdash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

@borderite Feel free to add yourself to the list of contributors for this exercise, you've done significant work on this exercise:

"contributors": [
"yurrriq"
],

You'll receive points on Exercism for the PR without it, but people included in the list get an extra shoutout below the exercise introduction:

Screenshot from 2025-04-26 23-17-22

Popup on click:

Screenshot from 2025-04-26 23-17-34

@borderite
Copy link
Contributor Author

@fapdash Thanks for your suggestion. I've added my name to the contributor list.

@fapdash fapdash merged commit 2c5f028 into exercism:main Apr 27, 2025
2 checks passed
@borderite borderite deleted the phone-number-tests-fix branch April 27, 2025 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants