Skip to content

phone-number: Remove test using malformed input. #772

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 2 commits into from
May 6, 2017

Conversation

Insti
Copy link
Contributor

@Insti Insti commented May 5, 2017

Your task is to clean up differently formated telephone numbers by removing punctuation and the country code (1) if present.

Letters are not punctuation and this is not primarily a string parsing exercise.
So remove the test using 1a2b3c4d5e6f7g8h9i0j as input.

Insti added 2 commits May 5, 2017 08:10
This is not a string parsing exercise and there is no reason why a
number should be invalid due to inconsequential non-digit characters.

"2a2b3c4d5e6f7g8h9i0j" should be as valid as: "My phone number is: 223 456 7890"
@Insti Insti merged commit 39cba0d into exercism:master May 6, 2017
@Insti Insti deleted the Phone_number_fix branch May 6, 2017 14:46
@Insti
Copy link
Contributor Author

Insti commented May 6, 2017

Thanks for the reviews. 👍

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