Fix #22 - manage systems before setSystemIndex

This commit is contained in:
Calvin Rose
2020-08-12 08:28:57 -05:00
parent e095e10d44
commit afd7d326d7
3 changed files with 19 additions and 0 deletions
+10
View File
@@ -310,4 +310,14 @@ describe('tiny-ecs:', function()
assert.are.same(_G, GLOBALS)
end)
it("Can set system indices", function()
local world = tiny.world()
local systemA = tiny.system()
local systemB = tiny.system()
world:addSystem(systemA)
world:addSystem(systemB)
world:setSystemIndex(systemA, 1)
assert(true)
end)
end)