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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user