Add test case

This commit is contained in:
vnnh 2025-01-04 00:01:48 -06:00 committed by GitHub
parent b7e4c0b363
commit 645db6eb63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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()