Fix unittest failure for release versions (#14067)

This commit is contained in:
grorp 2023-12-08 21:13:33 +01:00 committed by GitHub
parent 2ec3325381
commit 689aaf50b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,6 +7,10 @@ unittests.register("test_get_version", function()
assert(type(version.proto_min) == "number") assert(type(version.proto_min) == "number")
assert(type(version.proto_max) == "number") assert(type(version.proto_max) == "number")
assert(version.proto_max >= version.proto_min) assert(version.proto_max >= version.proto_min)
assert(type(version.hash) == "string")
assert(type(version.is_dev) == "boolean") assert(type(version.is_dev) == "boolean")
if version.is_dev then
assert(type(version.hash) == "string")
else
assert(version.hash == nil)
end
end) end)