Skip to content

Commit

Permalink
Fix unittest failure for release versions (minetest#14067)
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp authored and cx384 committed Dec 9, 2023
1 parent bb145b0 commit 768892d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion games/devtest/mods/unittests/get_version.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ unittests.register("test_get_version", function()
assert(type(version.proto_min) == "number")
assert(type(version.proto_max) == "number")
assert(version.proto_max >= version.proto_min)
assert(type(version.hash) == "string")
assert(type(version.is_dev) == "boolean")
if version.is_dev then
assert(type(version.hash) == "string")
else
assert(version.hash == nil)
end
end)

0 comments on commit 768892d

Please sign in to comment.