Skip to content

Commit b9d4dbd

Browse files
committed
set unique descriptions for test-cases
1 parent aaa3ef7 commit b9d4dbd

File tree

2 files changed

+30
-30
lines changed

2 files changed

+30
-30
lines changed

tests/draft4/optional/format.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,67 +25,67 @@
2525
"schema": {"format": "uri"},
2626
"tests": [
2727
{
28-
"description": "a valid URI",
28+
"description": "a valid URL with anchor tag",
2929
"data": "http://foo.bar/?baz=qux#quux",
3030
"valid": true
3131
},
3232
{
33-
"description": "a valid URI",
33+
"description": "a valid URL with anchor tag and parantheses",
3434
"data": "http://foo.com/blah_(wikipedia)_blah#cite-1",
3535
"valid": true
3636
},
3737
{
38-
"description": "a valid URI",
38+
"description": "a valid URL with URL-encoded stuff",
3939
"data": "http://foo.bar/?q=Test%20URL-encoded%20stuff",
4040
"valid": true
4141
},
4242
{
43-
"description": "a valid URI",
43+
"description": "a valid puny-coded URL ",
4444
"data": "http://xn--nw2a.xn--j6w193g/",
4545
"valid": true
4646
},
4747
{
48-
"description": "a valid URI",
48+
"description": "a valid URL with many special characters",
4949
"data": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
5050
"valid": true
5151
},
5252
{
53-
"description": "a valid URI",
53+
"description": "a valid URL based on IPv4",
5454
"data": "http://223.255.255.254",
5555
"valid": true
5656
},
5757
{
58-
"description": "a valid URI",
58+
"description": "a valid URL with ftp scheme",
5959
"data": "ftp://ftp.is.co.za/rfc/rfc1808.txt",
6060
"valid": true
6161
},
6262
{
63-
"description": "a valid URI",
63+
"description": "a valid URL for a simple text file",
6464
"data": "http://www.ietf.org/rfc/rfc2396.txt",
6565
"valid": true
6666
},
6767
{
68-
"description": "a valid URI",
68+
"description": "a valid URL ",
6969
"data": "ldap://[2001:db8::7]/c=GB?objectClass?one",
7070
"valid": true
7171
},
7272
{
73-
"description": "a valid URI",
73+
"description": "a valid mailto URI",
7474
"data": "mailto:John.Doe@example.com",
7575
"valid": true
7676
},
7777
{
78-
"description": "a valid URI",
78+
"description": "a valid newsgroup URI",
7979
"data": "news:comp.infosystems.www.servers.unix",
8080
"valid": true
8181
},
8282
{
83-
"description": "a valid URI",
83+
"description": "a valid tel URI",
8484
"data": "tel:+1-816-555-1212",
8585
"valid": true
8686
},
8787
{
88-
"description": "a valid URI",
88+
"description": "a valid URN",
8989
"data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2",
9090
"valid": true
9191
},
@@ -110,12 +110,12 @@
110110
"valid": false
111111
},
112112
{
113-
"description": "an invalid URI",
113+
"description": "an invalid URI with spaces",
114114
"data": "http:// shouldfail.com",
115115
"valid": false
116116
},
117117
{
118-
"description": "an invalid URI",
118+
"description": "an invalid URI with spaces and missing scheme",
119119
"data": ":// should fail",
120120
"valid": false
121121
}

tests/draft6/optional/format.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,67 +25,67 @@
2525
"schema": {"format": "uri"},
2626
"tests": [
2727
{
28-
"description": "a valid URI",
28+
"description": "a valid URL with anchor tag",
2929
"data": "http://foo.bar/?baz=qux#quux",
3030
"valid": true
3131
},
3232
{
33-
"description": "a valid URI",
33+
"description": "a valid URL with anchor tag and parantheses",
3434
"data": "http://foo.com/blah_(wikipedia)_blah#cite-1",
3535
"valid": true
3636
},
3737
{
38-
"description": "a valid URI",
38+
"description": "a valid URL with URL-encoded stuff",
3939
"data": "http://foo.bar/?q=Test%20URL-encoded%20stuff",
4040
"valid": true
4141
},
4242
{
43-
"description": "a valid URI",
43+
"description": "a valid puny-coded URL ",
4444
"data": "http://xn--nw2a.xn--j6w193g/",
4545
"valid": true
4646
},
4747
{
48-
"description": "a valid URI",
48+
"description": "a valid URL with many special characters",
4949
"data": "http://-.~_!$&'()*+,;=:%40:80%2f::::::@example.com",
5050
"valid": true
5151
},
5252
{
53-
"description": "a valid URI",
53+
"description": "a valid URL based on IPv4",
5454
"data": "http://223.255.255.254",
5555
"valid": true
5656
},
5757
{
58-
"description": "a valid URI",
58+
"description": "a valid URL with ftp scheme",
5959
"data": "ftp://ftp.is.co.za/rfc/rfc1808.txt",
6060
"valid": true
6161
},
6262
{
63-
"description": "a valid URI",
63+
"description": "a valid URL for a simple text file",
6464
"data": "http://www.ietf.org/rfc/rfc2396.txt",
6565
"valid": true
6666
},
6767
{
68-
"description": "a valid URI",
68+
"description": "a valid URL ",
6969
"data": "ldap://[2001:db8::7]/c=GB?objectClass?one",
7070
"valid": true
7171
},
7272
{
73-
"description": "a valid URI",
73+
"description": "a valid mailto URI",
7474
"data": "mailto:John.Doe@example.com",
7575
"valid": true
7676
},
7777
{
78-
"description": "a valid URI",
78+
"description": "a valid newsgroup URI",
7979
"data": "news:comp.infosystems.www.servers.unix",
8080
"valid": true
8181
},
8282
{
83-
"description": "a valid URI",
83+
"description": "a valid tel URI",
8484
"data": "tel:+1-816-555-1212",
8585
"valid": true
8686
},
8787
{
88-
"description": "a valid URI",
88+
"description": "a valid URN",
8989
"data": "urn:oasis:names:specification:docbook:dtd:xml:4.1.2",
9090
"valid": true
9191
},
@@ -110,12 +110,12 @@
110110
"valid": false
111111
},
112112
{
113-
"description": "an invalid URI",
113+
"description": "an invalid URI with spaces",
114114
"data": "http:// shouldfail.com",
115115
"valid": false
116116
},
117117
{
118-
"description": "an invalid URI",
118+
"description": "an invalid URI with spaces and missing scheme",
119119
"data": ":// should fail",
120120
"valid": false
121121
}

0 commit comments

Comments
 (0)