Debian Codegraph @

t/additional-tests-draft2020-12/format-hostname.json

raw
1 [
2 {
3 "description": "IPv4 addresses are not hostnames",
4 "schema": {
5 "format": "hostname"
6 },
7 "tests": [
8 {
9 "description": "IP address is rejected",
10 "data": "192.168.0.1",
11 "valid": false
12 },
13 {
14 "description": "dotted triplet is okay",
15 "data": "192.168.0",
16 "valid": true
17 },
18 {
19 "description": "partial digits in host are ok",
20 "data": "192.168.0.1.example.com",
21 "valid": true
22 },
23 {
24 "description": "empty string",
25 "data": "",
26 "valid": false
27 }
28 ]
29 }
30 ]