aboutsummaryrefslogtreecommitdiffstats
path: root/test/inet.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/inet.lua')
-rw-r--r--test/inet.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/inet.lua b/test/inet.lua
index b974179..f2968bd 100644
--- a/test/inet.lua
+++ b/test/inet.lua
@@ -305,6 +305,11 @@ local function misc()
assert(inet('2001:db8::42/64'):bits(0) == nil)
assert(inet('2001:db8::42/64'):bits(42) == nil)
assert(inet('2001:db8::42/64'):bits(64) == nil)
+
+ assert(inet('192.0.2.24'):subnets(-1) == nil)
+ assert(inet('192.0.2.24'):subnets(33) == nil)
+ assert(inet('2001:db8::42/64'):subnets(-1) == nil)
+ assert(inet('2001:db8::42/64'):subnets(129) == nil)
end
local t = test.new()