Skip to content

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

Merged
Insti merged 2 commits intoexercism:masterfrom
Insti:Phone_number_fix
May 6, 2017
Merged

phone-number: Remove test using malformed input.#772
Insti merged 2 commits intoexercism:masterfrom
Insti:Phone_number_fix

Conversation

@Insti
Copy link
Copy Markdown
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
Copy Markdown
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