Skip to content

Commit 809a114

Browse files
fix needless inconsistencies in format tests between drafts
- whitespace - a bad RFC uri - omitted tests
1 parent 66e813a commit 809a114

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8 files changed

+36
-2
lines changed

tests/draft-future/optional/format/date-time.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -33,6 +33,11 @@
33
"data": "1990-12-31T15:59:60-24:00",
33
"data": "1990-12-31T15:59:60-24:00",
34
"valid": false
34
"valid": false
35
},
35
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
36
{
41
{
37
"description": "an invalid date-time string",
42
"description": "an invalid date-time string",
38
"data": "06/19/1963 08:30:06 PST",
43
"data": "06/19/1963 08:30:06 PST",

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft-future/optional/format/idn-email.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft-future/optional/format/iri-reference.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft-future/optional/format/relative-json-pointer.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft-future/optional/format/uri-reference.json

Whitespace-only changes.

tests/draft-future/optional/format/uri-template.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2019-09/optional/format/date-time.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -33,6 +33,11 @@
33
"data": "1990-12-31T15:59:60-24:00",
33
"data": "1990-12-31T15:59:60-24:00",
34
"valid": false
34
"valid": false
35
},
35
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
36
{
41
{
37
"description": "an invalid date-time string",
42
"description": "an invalid date-time string",
38
"data": "06/19/1963 08:30:06 PST",
43
"data": "06/19/1963 08:30:06 PST",

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2019-09/optional/format/idn-email.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2019-09/optional/format/iri-reference.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2019-09/optional/format/relative-json-pointer.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2019-09/optional/format/uri-reference.json

Whitespace-only changes.

tests/draft2019-09/optional/format/uri-template.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2020-12/optional/format/date-time.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -33,6 +33,11 @@
33
"data": "1990-12-31T15:59:60-24:00",
33
"data": "1990-12-31T15:59:60-24:00",
34
"valid": false
34
"valid": false
35
},
35
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
36
{
41
{
37
"description": "an invalid date-time string",
42
"description": "an invalid date-time string",
38
"data": "06/19/1963 08:30:06 PST",
43
"data": "06/19/1963 08:30:06 PST",

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2020-12/optional/format/idn-email.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2020-12/optional/format/iri-reference.json

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2020-12/optional/format/relative-json-pointer.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft2020-12/optional/format/uri-reference.json

Whitespace-only changes.

tests/draft2020-12/optional/format/uri-template.json

Whitespace-only changes.

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

Whitespace-only changes.

tests/draft3/optional/format/color.json

Whitespace-only changes.

tests/draft3/optional/format/date-time.json

Whitespace-only changes.

tests/draft3/optional/format/date.json

Whitespace-only changes.

tests/draft3/optional/format/email.json

Whitespace-only changes.

tests/draft3/optional/format/host-name.json

Whitespace-only changes.

tests/draft3/optional/format/ip-address.json

Whitespace-only changes.

tests/draft3/optional/format/ipv6.json

Whitespace-only changes.

tests/draft3/optional/format/regex.json

Whitespace-only changes.

tests/draft3/optional/format/time.json

Whitespace-only changes.

tests/draft3/optional/format/uri.json

Whitespace-only changes.

tests/draft4/optional/format/date-time.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -33,6 +33,11 @@
33
"data": "1990-12-31T15:59:60-24:00",
33
"data": "1990-12-31T15:59:60-24:00",
34
"valid": false
34
"valid": false
35
},
35
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
36
{
41
{
37
"description": "an invalid date-time string",
42
"description": "an invalid date-time string",
38
"data": "06/19/1963 08:30:06 PST",
43
"data": "06/19/1963 08:30:06 PST",

tests/draft4/optional/format/email.json

Whitespace-only changes.

tests/draft4/optional/format/hostname.json

+5-1
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -8,6 +8,11 @@
8
"data": "www.example.com",
8
"data": "www.example.com",
9
"valid": true
9
"valid": true
10
},
10
},
11+
{
12+
"description": "a valid punycoded IDN hostname",
13+
"data": "xn--4gbwdl.xn--wgbh1c",
14+
"valid": true
15+
},
11
{
16
{
12
"description": "a host name starting with an illegal character",
17
"description": "a host name starting with an illegal character",
13
"data": "-a-host-name-that-starts-with--",
18
"data": "-a-host-name-that-starts-with--",
@@ -61,4 +66,3 @@
61
]
66
]
62
}
67
}
63
]
68
]
64-

tests/draft4/optional/format/ipv4.json

Whitespace-only changes.

tests/draft4/optional/format/ipv6.json

Whitespace-only changes.

tests/draft4/optional/format/uri.json

Whitespace-only changes.

tests/draft6/optional/format/date-time.json

Whitespace-only changes.

tests/draft6/optional/format/email.json

Whitespace-only changes.

tests/draft6/optional/format/hostname.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -8,6 +8,11 @@
8
"data": "www.example.com",
8
"data": "www.example.com",
9
"valid": true
9
"valid": true
10
},
10
},
11+
{
12+
"description": "a valid punycoded IDN hostname",
13+
"data": "xn--4gbwdl.xn--wgbh1c",
14+
"valid": true
15+
},
11
{
16
{
12
"description": "a host name starting with an illegal character",
17
"description": "a host name starting with an illegal character",
13
"data": "-a-host-name-that-starts-with--",
18
"data": "-a-host-name-that-starts-with--",

tests/draft6/optional/format/ipv4.json

Whitespace-only changes.

tests/draft6/optional/format/ipv6.json

Whitespace-only changes.

tests/draft6/optional/format/json-pointer.json

Whitespace-only changes.

tests/draft6/optional/format/uri-reference.json

Whitespace-only changes.

tests/draft6/optional/format/uri-template.json

Whitespace-only changes.

tests/draft6/optional/format/uri.json

Whitespace-only changes.

tests/draft7/optional/format/date-time.json

+5
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -33,6 +33,11 @@
33
"data": "1990-12-31T15:59:60-24:00",
33
"data": "1990-12-31T15:59:60-24:00",
34
"valid": false
34
"valid": false
35
},
35
},
36+
{
37+
"description": "an invalid closing Z after time-zone offset",
38+
"data": "1963-06-19T08:30:06.28123+01:00Z",
39+
"valid": false
40+
},
36
{
41
{
37
"description": "an invalid date-time string",
42
"description": "an invalid date-time string",
38
"data": "06/19/1963 08:30:06 PST",
43
"data": "06/19/1963 08:30:06 PST",

tests/draft7/optional/format/date.json

Whitespace-only changes.

tests/draft7/optional/format/email.json

Whitespace-only changes.

tests/draft7/optional/format/hostname.json

Whitespace-only changes.

tests/draft7/optional/format/idn-email.json

Whitespace-only changes.

tests/draft7/optional/format/idn-hostname.json

+1-1
Original file line numberOriginal file lineDiff line numberDiff line change
@@ -91,7 +91,7 @@
91
},
91
},
92
{
92
{
93
"description": "Exceptions that are PVALID, right-to-left chars",
93
"description": "Exceptions that are PVALID, right-to-left chars",
94-
"comment": "https://tools.ietf.org/html/rfc/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
94+
"comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
95
"data": "\u06fd\u06fe",
95
"data": "\u06fd\u06fe",
96
"valid": true
96
"valid": true
97
},
97
},

tests/draft7/optional/format/ipv4.json

Whitespace-only changes.

tests/draft7/optional/format/ipv6.json

Whitespace-only changes.

tests/draft7/optional/format/iri-reference.json

Whitespace-only changes.

tests/draft7/optional/format/iri.json

Whitespace-only changes.

tests/draft7/optional/format/json-pointer.json

Whitespace-only changes.

tests/draft7/optional/format/regex.json

Whitespace-only changes.

tests/draft7/optional/format/relative-json-pointer.json

Whitespace-only changes.

tests/draft7/optional/format/time.json

Whitespace-only changes.

tests/draft7/optional/format/uri-reference.json

Whitespace-only changes.

tests/draft7/optional/format/uri-template.json

Whitespace-only changes.

tests/draft7/optional/format/uri.json

Whitespace-only changes.

0 commit comments

Comments
 (0)