Skip to content

Commit f03d7ad

Browse files
authored
phone-number: Use consistent error style for incorrect number of digits (#2104)
1 parent 1f06fc1 commit f03d7ad

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

exercises/phone-number/canonical-data.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@
4444
"error": "incorrect number of digits"
4545
}
4646
},
47+
{
48+
"uuid": "2de74156-f646-42b5-8638-0ef1d8b58bc2",
49+
"reimplements": "598d8432-0659-4019-a78b-1c6a73691d21",
50+
"description": "invalid when 9 digits",
51+
"comments": ["Make incorrect number of digit errors consistent."],
52+
"property": "clean",
53+
"input": {
54+
"phrase": "123456789"
55+
},
56+
"expected": {
57+
"error": "must not be fewer than 10 digits"
58+
}
59+
},
4760
{
4861
"uuid": "57061c72-07b5-431f-9766-d97da7c4399d",
4962
"description": "invalid when 11 digits does not start with a 1",
@@ -84,6 +97,19 @@
8497
"error": "more than 11 digits"
8598
}
8699
},
100+
{
101+
"uuid": "4a1509b7-8953-4eec-981b-c483358ff531",
102+
"reimplements": "c6a5f007-895a-4fc5-90bc-a7e70f9b5cad",
103+
"description": "invalid when more than 11 digits",
104+
"comments": ["Make incorrect number of digit errors consistent."],
105+
"property": "clean",
106+
"input": {
107+
"phrase": "321234567890"
108+
},
109+
"expected": {
110+
"error": "must not be greater than 11 digits"
111+
}
112+
},
87113
{
88114
"uuid": "63f38f37-53f6-4a5f-bd86-e9b404f10a60",
89115
"description": "invalid with letters",

0 commit comments

Comments
 (0)