detach returns boolean now

This commit is contained in:
BlackMATov
2024-11-28 23:45:17 +07:00
parent 104fed6486
commit ed6db0701a
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -277,11 +277,11 @@ do
assert(e:alive())
assert(e.__chunk == evo.registry.chunk(f1, f2))
assert(e == e:detach())
assert(e:detach())
assert(e:alive())
assert(e.__chunk == nil)
assert(e == e:detach())
assert(not e:detach())
assert(e:alive())
assert(e.__chunk == nil)
end
@@ -360,7 +360,7 @@ do
assert(not e:alive())
assert(e.__chunk == nil)
assert(e == e:detach())
assert(not e:detach())
assert(not e:alive())
assert(e.__chunk == nil)
end