1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Restructure devtest's unittests and run them in CI (#11859)

This commit is contained in:
sfan5 2021-12-18 20:36:43 +01:00 committed by GitHub
parent 1c5ece8334
commit 8472141b79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 292 additions and 75 deletions

View file

@ -25,7 +25,7 @@ minetest.register_chatcommand("item_description", {
end
})
function unittests.test_short_desc()
local function test_short_desc()
local function get_short_description(item)
return ItemStack(item):get_short_description()
end
@ -49,3 +49,4 @@ function unittests.test_short_desc()
return true
end
unittests.register("test_short_desc", test_short_desc)