Commit 2c5f028
authored
Implemented all "Phone Number" problems from the canonical test data. (exercism#465) (exercism#472)
* Corrected a few tests of "Phone Number".
- Revised the following tests using the canonical test data.
cleans-number-test
cleans-numbers-with-dots-test
valid-when-11-digits-and-first-is-1-test
- Revised the following tests specific for "Phone Number" to conform
the requirements for phone numbers.
area-code-test
pprint-test
pprint-full-us-phone-number-test
* Implemented all "Phone Number" problems from the canonical test data. (exercism#465)
- The track-specific three problems are still included, but their
solutions have been corrected.
* Revert the uuid of "Phone Number" in config.json to the original one.
* Update config.json
The difficulty of "phone number" is reverted back to 2.
* Put the entry for "Phone Number" back to the original position in ./configu.json.
* Revised the test and example files of the "Phone Number" exercise.
- The tests expecting errors now check custom errors instead of error
messages.
- The example test has been modified so that it passes the modified tests.
* Added borderite to the contributor list of "Phone Number".1 parent 59a411b commit 2c5f028
File tree
6 files changed
+123
-43
lines changed- exercises/practice/phone-number
- .meta
6 files changed
+123
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 296 | + | |
302 | 297 | | |
303 | 298 | | |
304 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
6 | 14 | | |
| 15 | + | |
| 16 | + | |
7 | 17 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | | - | |
22 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
23 | 36 | | |
| 37 | + | |
| 38 | + | |
24 | 39 | | |
25 | | - | |
26 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
27 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
28 | 84 | | |
29 | 85 | | |
30 | | - | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
31 | 90 | | |
32 | 91 | | |
33 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | | - | |
17 | | - | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | | - | |
21 | | - | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | | - | |
25 | | - | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | | - | |
29 | | - | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | | - | |
32 | | - | |
| 39 | + | |
| 40 | + | |
33 | 41 | | |
34 | | - | |
35 | | - | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
| 45 | + | |
| 46 | + | |
37 | 47 | | |
38 | | - | |
39 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
40 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
41 | 65 | | |
42 | 66 | | |
43 | 67 | | |
| |||
50 | 74 | | |
51 | 75 | | |
52 | 76 | | |
53 | | - | |
54 | | - | |
| 77 | + | |
55 | 78 | | |
| 79 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
0 commit comments