Debian Codegraph @

share/tests/draft3/optional/format/email.json

raw
1 [
2 {
3 "description": "validation of e-mail addresses",
4 "schema": { "format": "email" },
5 "tests": [
6 {
7 "description": "a valid e-mail address",
8 "data": "[email protected]",
9 "valid": true
10 },
11 {
12 "description": "an invalid e-mail address",
13 "data": "2962",
14 "valid": false
15 },
16 {
17 "description": "tilde in local part is valid",
18 "data": "[email protected]",
19 "valid": true
20 },
21 {
22 "description": "tilde before local part is valid",
23 "data": "[email protected]",
24 "valid": true
25 },
26 {
27 "description": "tilde after local part is valid",
28 "data": "[email protected]",
29 "valid": true
30 },
31 {
32 "description": "dot before local part is not valid",
33 "data": "[email protected]",
34 "valid": false
35 },
36 {
37 "description": "dot after local part is not valid",
38 "data": "[email protected]",
39 "valid": false
40 },
41 {
42 "description": "two separated dots inside local part are valid",
43 "data": "[email protected]",
44 "valid": true
45 },
46 {
47 "description": "two subsequent dots inside local part are not valid",
48 "data": "[email protected]",
49 "valid": false
50 },
51 {
52 "description": "two email addresses is not valid",
53 "data": "[email protected], [email protected]",
54 "valid": false
55 },
56 {
57 "description": "full \"From\" header is invalid",
58 "data": "\"Winston Smith\" <[email protected]> (Records Department)",
59 "valid": false
60 }
61 ]
62 }
63 ]