From 75749c20288956c64c490d29df78ac053e6f4eb0 Mon Sep 17 00:00:00 2001 From: Ukendio Date: Sun, 12 May 2024 04:14:33 +0200 Subject: [PATCH] Uncomment cases --- tests/world.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/world.lua b/tests/world.lua index 4a1a634..6b423fe 100644 --- a/tests/world.lua +++ b/tests/world.lua @@ -14,7 +14,6 @@ local TEST, CASE, CHECK, FINISH, SKIP = testkit.test() local N = 10 TEST("world", function() - --[[ do CASE "should be iterable" local world = jecs.World.new() local A = world:component() @@ -211,7 +210,6 @@ TEST("world", function() CHECK(e == bob) end end - ]] do CASE "should allow wildcards in queries" local world = jecs.World.new() @@ -219,17 +217,15 @@ TEST("world", function() local Apples = world:entity() local bob = world:entity() - world:set(bob, ECS_PAIR(Eats, Apples), true) + world:add(bob, ECS_PAIR(Eats, Apples)) --testkit.print(world.componentIndex) local w = jecs.Wildcard for e, bool in world:query(ECS_PAIR(Eats, w)) do CHECK(e == bob) - CHECK(bool) end for e, bool in world:query(ECS_PAIR(w, Apples)) do CHECK(e == bob) - CHECK(bool) end end end)