1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 02:15:22 +02: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
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)