Skip to content

Commit 0bb66d4

Browse files
authored
phone-number: Clears up contradiction re: why 11 digits is invalid (#724)
There are two tests concerning 11 digit numbers. One test says they are valid when the digits start with one. The other test states that 11 digits is invalid, but doesn't state why. The two tests seem to be contradicting each other.
1 parent f67a2d8 commit 0bb66d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/phone-number/canonical-data.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"exercise": "phone-number",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"cases": [
55
{
66
"description": "Cleanup user-entered phone numbers",
@@ -35,7 +35,7 @@
3535
"expected": null
3636
},
3737
{
38-
"description": "invalid when 11 digits",
38+
"description": "invalid when 11 digits does not start with a 1",
3939
"property": "clean",
4040
"phrase": "21234567890",
4141
"expected": null

0 commit comments

Comments
 (0)