Skip to content

Commit

Permalink
add invalid ipv4 subnet test
Browse files Browse the repository at this point in the history
  • Loading branch information
aman207 committed Sep 9, 2024
1 parent a37beea commit 601915a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/operations/tests/ParseIPRange.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 601915a

Please sign in to comment.