Skip to content

Commit 1649470

Browse files
committed
More ipv6 tests to increase coverage
1 parent 7334b4c commit 1649470

File tree

6 files changed

+90
-0
lines changed

6 files changed

+90
-0
lines changed

tests/draft-future/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

tests/draft2019-09/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

tests/draft2020-12/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

tests/draft4/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

tests/draft6/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

tests/draft7/optional/format/ipv6.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
"data": "12345::",
1414
"valid": false
1515
},
16+
{
17+
"description": "trailing 4 hex symbols is valid",
18+
"data": "::abef",
19+
"valid": true
20+
},
21+
{
22+
"description": "trailing 5 hex symbols is invalid",
23+
"data": "::abcef",
24+
"valid": false
25+
},
1626
{
1727
"description": "an IPv6 address with too many components",
1828
"data": "1:1:1:1:1:1:1:1:1:1:1:1:1:1:1:1",
@@ -53,6 +63,11 @@
5363
"data": ":2:3:4::8",
5464
"valid": false
5565
},
66+
{
67+
"description": "single set of double colons in the middle is valid",
68+
"data": "1:d6::42",
69+
"valid": true
70+
},
5671
{
5772
"description": "two sets of double colons is invalid",
5873
"data": "1::d6::42",

0 commit comments

Comments
 (0)