We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7111d82 commit 795d76dCopy full SHA for 795d76d
1 file changed
tests/test_ecs.py
@@ -275,3 +275,10 @@ def test_entity_clear() -> None:
275
def test_world_iter() -> None:
276
with pytest.raises(TypeError, match=r"is not iterable"):
277
iter(tcod.ecs.Registry()) # Not iterable for now, maybe later
278
+
279
280
+def test_world_query_bool() -> None:
281
+ world = tcod.ecs.Registry()
282
+ assert not world.Q.all_of(tags=["Foo"])
283
+ world[None].tags.add("Foo")
284
+ assert world.Q.all_of(tags=["Foo"])
0 commit comments