Skip to content

Commit

Permalink
Add test case for Ukendio#171
Browse files Browse the repository at this point in the history
  • Loading branch information
vnnh authored Jan 4, 2025
1 parent 88f7236 commit fd77321
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/tests.luau
Original file line number Diff line number Diff line change
Expand Up @@ -1495,5 +1495,20 @@ 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")

for _ in query:iter() do
CHECK(false)
end
end
end)
FINISH()

0 comments on commit fd77321

Please sign in to comment.