summaryrefslogtreecommitdiff
path: root/games/devtest/mods/unittests/inside_async_env.lua
blob: 9774771f9881206c7903eb977f434793f3f0e648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
unittests = {}

core.log("info", "Hello World")

function unittests.async_test()
	assert(core == minetest)
	-- stuff that should not be here
	assert(not core.get_player_by_name)
	assert(not core.set_node)
	assert(not core.object_refs)
	-- stuff that should be here
	assert(ItemStack)
	assert(core.registered_items[""])
	return true
end