Skip to content

Commit 69b53ad

Browse files
committed
Add a test case for ipv4 with netmask
1 parent 20f1f52 commit 69b53ad

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
"description": "invalid non-ASCII '২' (a Bengali 2)",
8282
"data": "1২7.0.0.1",
8383
"valid": false
84+
},
85+
{
86+
"description": "netmask is not a part of ipv4 address",
87+
"data": "192.168.1.0/24",
88+
"valid": false
8489
}
8590
]
8691
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
"description": "invalid non-ASCII '২' (a Bengali 2)",
8282
"data": "1২7.0.0.1",
8383
"valid": false
84+
},
85+
{
86+
"description": "netmask is not a part of ipv4 address",
87+
"data": "192.168.1.0/24",
88+
"valid": false
8489
}
8590
]
8691
}

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

+5
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@
8181
"description": "invalid non-ASCII '২' (a Bengali 2)",
8282
"data": "1২7.0.0.1",
8383
"valid": false
84+
},
85+
{
86+
"description": "netmask is not a part of ipv4 address",
87+
"data": "192.168.1.0/24",
88+
"valid": false
8489
}
8590
]
8691
}

tests/draft4/optional/format/ipv4.json

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
"description": "invalid non-ASCII '২' (a Bengali 2)",
7979
"data": "1২7.0.0.1",
8080
"valid": false
81+
},
82+
{
83+
"description": "netmask is not a part of ipv4 address",
84+
"data": "192.168.1.0/24",
85+
"valid": false
8186
}
8287
]
8388
}

tests/draft6/optional/format/ipv4.json

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
"description": "invalid non-ASCII '২' (a Bengali 2)",
7979
"data": "1২7.0.0.1",
8080
"valid": false
81+
},
82+
{
83+
"description": "netmask is not a part of ipv4 address",
84+
"data": "192.168.1.0/24",
85+
"valid": false
8186
}
8287
]
8388
}

tests/draft7/optional/format/ipv4.json

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
"description": "invalid non-ASCII '২' (a Bengali 2)",
7979
"data": "1২7.0.0.1",
8080
"valid": false
81+
},
82+
{
83+
"description": "netmask is not a part of ipv4 address",
84+
"data": "192.168.1.0/24",
85+
"valid": false
8186
}
8287
]
8388
}

0 commit comments

Comments
 (0)