Skip to content

Commit 908168d

Browse files
authored
Merge pull request #71 from luau-project/fix-test-zlib-1.3
fix: tests for zlib 1.3
2 parents b2f6db9 + f547f56 commit 908168d

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ local function test_version()
180180
local major, minor, patch = lz.version()
181181
ok(1 == major, "major version 1 == " .. major);
182182
ok(type(minor) == "number", "minor version is number (" .. minor .. ")")
183-
ok(type(patch) == "number", "patch version is number (" .. patch .. ")")
183+
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
184188
end
185189

186190
local function main()

0 commit comments

Comments
 (0)