add invalid ipv4 subnet test

This commit is contained in:
anonion 2024-09-09 21:06:40 +00:00
parent a37beea1d2
commit 601915aa61

View file

@ -118,6 +118,17 @@ TestRegister.addTests([
},
],
},
{
name: "Invalid IPv4 subnet mask error",
input: "192.168.0.0/255.255.253.0",
expectedOutput: "Invalid subnet mask",
recipeConfig: [
{
"op": "Parse IP range",
"args": [true, true, false]
},
],
},
{
name: "IPv6 subnet out of range error",
input: "2404:6800:4001::/129",