mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2025-01-07 06:40:18 +01:00
unitest
This commit is contained in:
parent
e315876c75
commit
8deb08696f
@ -1,5 +1,3 @@
|
|||||||
-- Ensure a best possible compatibility with `_` underscore delimiter weirdnesses
|
|
||||||
|
|
||||||
local function get_skin(skin_name)
|
local function get_skin(skin_name)
|
||||||
local skin = skins.get(skin_name)
|
local skin = skins.get(skin_name)
|
||||||
or skins.__fuzzy_match_skin_name("(unittest)", skin_name, true)
|
or skins.__fuzzy_match_skin_name("(unittest)", skin_name, true)
|
||||||
@ -48,6 +46,6 @@ local function run_unittest()
|
|||||||
error("Unittest passed! Please disable them now.")
|
error("Unittest passed! Please disable them now.")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if skins._enable_unittest then
|
||||||
--run_unittest()
|
run_unittest()
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user