File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
tests/draft2019-09/optional/format Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 62
62
"description" : " mixed format with ipv4 section with a hex octet" ,
63
63
"data" : " 1::2:192.168.ff.1" ,
64
64
"valid" : false
65
+ },
66
+ {
67
+ "description" : " ipv4-mapped ipv6 address" ,
68
+ "data" : " ::ffff:192.168.0.1" ,
69
+ "valid" : true
70
+ },
71
+ {
72
+ "description" : " triple colons is invalid" ,
73
+ "data" : " 1:2:3:4:5:::8" ,
74
+ "valid" : false
75
+ },
76
+ {
77
+ "description" : " 8 octets" ,
78
+ "data" : " 1:2:3:4:5:6:7:8" ,
79
+ "valid" : true
80
+ },
81
+ {
82
+ "description" : " insufficient octets without double colons" ,
83
+ "data" : " 1:2:3:4:5:6:7" ,
84
+ "valid" : false
85
+ },
86
+ {
87
+ "description" : " ipv4 is not ipv6" ,
88
+ "data" : " 127.0.0.1" ,
89
+ "valid" : false
90
+ },
91
+ {
92
+ "description" : " missing leading octet is invalid" ,
93
+ "data" : " :2:3:4:5:6:7:8" ,
94
+ "valid" : false
95
+ },
96
+ {
97
+ "description" : " missing trailing octet is invalid" ,
98
+ "data" : " 1:2:3:4:5:6:7:" ,
99
+ "valid" : false
100
+ },
101
+ {
102
+ "description" : " missing leading octet with omitted octets later" ,
103
+ "data" : " :2:3:4::8" ,
104
+ "valid" : false
105
+ },
106
+ {
107
+ "description" : " ipv4 segment must have 4 octets" ,
108
+ "data" : " 1:2:3:4:1.2.3" ,
109
+ "valid" : false
65
110
}
66
111
]
67
112
}
You can’t perform that action at this time.
0 commit comments