We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b2f6db9 + f547f56 commit 908168dCopy full SHA for 908168d
1 file changed
test.lua
@@ -180,7 +180,11 @@ local function test_version()
180
local major, minor, patch = lz.version()
181
ok(1 == major, "major version 1 == " .. major);
182
ok(type(minor) == "number", "minor version is number (" .. minor .. ")")
183
- ok(type(patch) == "number", "patch version is number (" .. patch .. ")")
+ if ( patch == nil ) then
184
+ ok(patch == nil, "patch version is empty or is number (empty)")
185
+ else
186
+ ok(type(patch) == "number", "patch version is empty or is number (" .. patch .. ")")
187
+ end
188
end
189
190
local function main()
0 commit comments