aboutsummaryrefslogtreecommitdiffstats
path: root/test/inet.lua
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-18 20:12:47 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2019-07-18 20:12:47 +0000
commit0667077147ea9da13811bf99bd6b960e847af15e (patch)
treee42b875bff1df883859a9da60104909b9cdd3d55 /test/inet.lua
parent0a5fe9e3cd3d560fe81ea332baa95967c565a135 (diff)
downloadlua-inet-0667077147ea9da13811bf99bd6b960e847af15e.tar.gz
lua-inet-0667077147ea9da13811bf99bd6b960e847af15e.tar.xz
lua-inet-0667077147ea9da13811bf99bd6b960e847af15e.zip
add api versioning
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'test/inet.lua')
-rw-r--r--test/inet.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/inet.lua b/test/inet.lua
index 587a0b7..26d05e3 100644
--- a/test/inet.lua
+++ b/test/inet.lua
@@ -286,6 +286,8 @@ local function misc()
assert(not inet.is(42))
assert(inet.is(inet('0.0.0.0')))
assert(inet.is(inet('::')))
+
+ assert(inet.version == 1)
end
local t = test.new()