Skip to content

phone-number: add missing edge cases#1090

Merged
ErikSchierboom merged 4 commits intomasterfrom
cmccandless-patch-1
Jan 12, 2018
Merged

phone-number: add missing edge cases#1090
ErikSchierboom merged 4 commits intomasterfrom
cmccandless-patch-1

Conversation

@cmccandless
Copy link
Copy Markdown
Contributor

The existing descriptions for invalid area codes and exchange codes both cite a range, but only test a single value. This PR tests for all values outside the valid range.

The existing descriptions for invalid area codes and exchange codes both cite a range, but only test a single value. This PR tests for all values outside the valid range.
@rpottsoh
Copy link
Copy Markdown
Member

Thanks for bumping that. It is so easy to miss.

Copy link
Copy Markdown

@leenipper leenipper left a comment

Choose a reason for hiding this comment

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

Good improvements for test cases.
However, request no deeper nesting of test cases unnecessarily.

"expected": null
}
]
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Agree with the new edge test cases. But, would prefer it without another level of "cases": [ ]. I suggest the two invalid cases be at same level as the other clean test cases. Otherwise, the change will break some generators unnecessarily.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair enough; done.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks!

"phrase": "(223) 156-7890",
"expected": null
}
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ditto here. Prefer two new invalid cases, but without another nested level of cases.

@ErikSchierboom ErikSchierboom merged commit 8380763 into master Jan 12, 2018
@ErikSchierboom ErikSchierboom deleted the cmccandless-patch-1 branch January 12, 2018 07:25
@ErikSchierboom
Copy link
Copy Markdown
Member

Merged. Thanks!

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.

4 participants