summaryrefslogtreecommitdiff
path: root/ecs/tests/query.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/tests/query.rs')
-rw-r--r--ecs/tests/query.rs9
1 files changed, 5 insertions, 4 deletions
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<Comps>(world: &World, mut expected_ent_ids: Vec<Uid>)
+fn assert_query_finds_ents<QueryTerms>(world: &World, mut expected_ent_ids: Vec<Uid>)
where
- Comps: ComponentRefSequence,
+ QueryTerms: QueryTermSequence,
{
assert!(
world
- .query::<Comps, ()>()
+ .query::<QueryTerms, ()>()
.iter_with_euids()
.all(|(ent_id, _)| {
let Some(index) = expected_ent_ids