From 76e7e612e7b516bf52b508ae5bb367b1ddc3babc Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 18 Mar 2025 16:59:53 +0100 Subject: refactor(ecs): replace component::RefSequence with query terms --- ecs/tests/query.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ecs/tests/query.rs') diff --git a/ecs/tests/query.rs b/ecs/tests/query.rs index 010ffc9..79dfe85 100644 --- a/ecs/tests/query.rs +++ b/ecs/tests/query.rs @@ -1,4 +1,5 @@ -use ecs::component::{Component, RefSequence as ComponentRefSequence}; +use ecs::component::Component; +use ecs::query::TermSequence as QueryTermSequence; use ecs::uid::Uid; use ecs::{Component, World}; use parking_lot::{Mutex, Once}; @@ -41,13 +42,13 @@ fn setup() }); } -fn assert_query_finds_ents(world: &World, mut expected_ent_ids: Vec) +fn assert_query_finds_ents(world: &World, mut expected_ent_ids: Vec) where - Comps: ComponentRefSequence, + QueryTerms: QueryTermSequence, { assert!( world - .query::() + .query::() .iter_with_euids() .all(|(ent_id, _)| { let Some(index) = expected_ent_ids -- cgit v1.2.3-18-g5258