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:
parent
1c5ece8334
commit
8472141b79
12 changed files with 292 additions and 75 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue