mirror of
https://github.com/BlackMATov/evolved.lua.git
synced 2026-09-27 11:07:08 +07:00
destroy impl
This commit is contained in:
@@ -457,3 +457,16 @@ do
|
||||
assert(last_set_component == 45)
|
||||
assert(last_assign_component == 45)
|
||||
end
|
||||
|
||||
do
|
||||
local f = evo.id()
|
||||
local e = evo.id()
|
||||
|
||||
assert(evo.insert(e, f, 42))
|
||||
assert(evo.has(e, f))
|
||||
assert(evo.alive(e))
|
||||
|
||||
evo.destroy(e)
|
||||
assert(not evo.has(e, f))
|
||||
assert(not evo.alive(e))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user