mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-11-15 06:40:32 +01:00
c10ce2dbc5
Depends on mineunit from https://github.com/S-S-X/mineunit mesecons, mesecons_mvps, mesecons_fpga, and mesecons_luacontroller are now tested.
13 lines
484 B
Lua
13 lines
484 B
Lua
fixture("mesecons")
|
|
fixture("mesecons_gamecompat")
|
|
|
|
mineunit:set_current_modname("mesecons_luacontroller")
|
|
mineunit:set_modpath("mesecons_luacontroller", "../mesecons_luacontroller")
|
|
sourcefile("../mesecons_luacontroller/init")
|
|
|
|
function mesecon._test_program_luac(pos, code)
|
|
local node = minetest.get_node(pos)
|
|
assert.equal("mesecons_luacontroller:luacontroller", node.name:sub(1, 36))
|
|
return minetest.registered_nodes[node.name].mesecons.luacontroller.set_program(pos, code)
|
|
end
|