Skip to content

Commit

Permalink
Add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
vnnh authored Jan 4, 2025
1 parent b7e4c0b commit 645db6e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/tests.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1495,5 +1495,22 @@ TEST("repro", function()
end
CHECK(counter == 1)
end

do CASE "#3" -- ISSUE #171
local world = world_new()
local component1 = world:component()
local tag1 = world:entity()

local query = world:query(component1):with(tag1):cached()

local entity = world:entity()
world:set(entity, component1, "some data")

local counter = 0
for x in query:iter() do
counter += 1
end
CHECK(counter == 0)
end
end)
FINISH()

0 comments on commit 645db6e

Please sign in to comment.