|
1 | 1 | # Check [TELEPHONE NUMBER VALIDATOR](https://github.com/codewithmide/JavaScript-Algorithms-and-Data-Structures-Projects/blob/master/Telephone_Number_Validator/Telephone_Number_Validator.md) for more test cases.
|
2 | 2 |
|
3 |
| -`telephoneCheck("555-555-5555")` should return a `boolean`. |
4 |
| -`telephoneCheck("1 555-555-5555")` should return `true`. |
5 |
| -`telephoneCheck("1 (555) 555-5555")` should return `true`. |
6 |
| -`telephoneCheck("5555555555")` should return `true`. |
7 |
| -`telephoneCheck("555-555-5555")` should return `true`. |
8 |
| -`telephoneCheck("(555)555-5555")` should return `true`. |
9 |
| -`telephoneCheck("1(555)555-5555")` should return `true`. |
10 |
| -`telephoneCheck("555-5555")` should return `false`. |
11 |
| -`telephoneCheck("5555555")` should return `false`. |
12 |
| -`telephoneCheck("1 555)555-5555")` should return `false`. |
13 |
| -`telephoneCheck("1 555 555 5555")` should return `true`. |
14 |
| -`telephoneCheck("1 456 789 4444")` should return `true`. |
15 |
| -`telephoneCheck("123**&!!asdf#")` should return `false`. |
16 |
| -`telephoneCheck("55555555")` should return `false`. |
17 |
| -`telephoneCheck("(6054756961)")` should return `false`. |
18 |
| -`telephoneCheck("2 (757) 622-7382")` should return `false`. |
19 |
| -`telephoneCheck("0 (757) 622-7382")` should return `false`. |
20 |
| -`telephoneCheck("-1 (757) 622-7382")` should return `false`. |
21 |
| -`telephoneCheck("2 757 622-7382")` should return `false`. |
22 |
| -`telephoneCheck("10 (757) 622-7382")` should return `false`. |
23 |
| -`telephoneCheck("27576227382")` should return `false`. |
24 |
| -`telephoneCheck("(275)76227382")` should return `false`. |
25 |
| -`telephoneCheck("2(757)6227382")` should return `false`. |
26 |
| -`telephoneCheck("2(757)622-7382")` should return `false`. |
27 |
| -`telephoneCheck("555)-555-5555")` should return `false`. |
28 |
| -`telephoneCheck("(555-555-5555")` should return `false`. |
29 |
| -`telephoneCheck("(555)5(55?)-5555")` should return `false`. |
30 |
| -`telephoneCheck("55 55-55-555-5")` should return `false`. |
31 |
| -`telephoneCheck("11 555-555-5555")` should return `false`. |
| 3 | +- `telephoneCheck("555-555-5555")` should return a `boolean`. |
| 4 | +- `telephoneCheck("1 555-555-5555")` should return `true`. |
| 5 | +- `telephoneCheck("1 (555) 555-5555")` should return `true`. |
| 6 | +- `telephoneCheck("5555555555")` should return `true`. |
| 7 | +- `telephoneCheck("555-555-5555")` should return `true`. |
| 8 | +- `telephoneCheck("(555)555-5555")` should return `true`. |
| 9 | +- `telephoneCheck("1(555)555-5555")` should return `true`. |
| 10 | +- `telephoneCheck("555-5555")` should return `false`. |
| 11 | +- `telephoneCheck("5555555")` should return `false`. |
| 12 | +- `telephoneCheck("1 555)555-5555")` should return `false`. |
| 13 | +- `telephoneCheck("1 555 555 5555")` should return `true`. |
| 14 | +- `telephoneCheck("1 456 789 4444")` should return `true`. |
| 15 | +- `telephoneCheck("123**&!!asdf#")` should return `false`. |
| 16 | +- `telephoneCheck("55555555")` should return `false`. |
| 17 | +- `telephoneCheck("(6054756961)")` should return `false`. |
| 18 | +- `telephoneCheck("2 (757) 622-7382")` should return `false`. |
| 19 | +- `telephoneCheck("0 (757) 622-7382")` should return `false`. |
| 20 | +- `telephoneCheck("-1 (757) 622-7382")` should return `false`. |
| 21 | +- `telephoneCheck("2 757 622-7382")` should return `false`. |
| 22 | +- `telephoneCheck("10 (757) 622-7382")` should return `false`. |
| 23 | +- `telephoneCheck("27576227382")` should return `false`. |
| 24 | +- `telephoneCheck("(275)76227382")` should return `false`. |
| 25 | +- `telephoneCheck("2(757)6227382")` should return `false`. |
| 26 | +- `telephoneCheck("2(757)622-7382")` should return `false`. |
| 27 | +- `telephoneCheck("555)-555-5555")` should return `false`. |
| 28 | +- `telephoneCheck("(555-555-5555")` should return `false`. |
| 29 | +- `telephoneCheck("(555)5(55?)-5555")` should return `false`. |
| 30 | +- `telephoneCheck("55 55-55-555-5")` should return `false`. |
| 31 | +- `telephoneCheck("11 555-555-5555")` should return `false`. |
0 commit comments