mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-31 18:31:04 +00:00
Fix broken unit test
Also makes devtest unit test results a bit more prominent
This commit is contained in:
parent
5009259473
commit
567f85752d
3 changed files with 37 additions and 16 deletions
|
@ -254,15 +254,3 @@ local function test_gennotify_api()
|
|||
assert(#custom == 0, "custom ids not empty")
|
||||
end
|
||||
unittests.register("test_gennotify_api", test_gennotify_api)
|
||||
|
||||
unittests.register("test_item_registration", function()
|
||||
local itemname = "unittests:test_override_item"
|
||||
minetest.register_item(itemname, {description = "foo"})
|
||||
assert(assert(minetest.registered_items[itemname]).description == "foo")
|
||||
minetest.override_item(itemname, {description = "bar"})
|
||||
assert(assert(minetest.registered_items[itemname]).description == "bar")
|
||||
minetest.override_item(itemname, {}, {"description"})
|
||||
assert(assert(minetest.registered_items[itemname]).description == nil)
|
||||
minetest.unregister_item("unittests:test_override_item")
|
||||
assert(minetest.registered_items["unittests:test_override_item"] == nil)
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue