Skip to content
This repository has been archived by the owner on Oct 25, 2021. It is now read-only.

Commit

Permalink
Fix grid test
Browse files Browse the repository at this point in the history
  • Loading branch information
sunreef committed May 27, 2019
1 parent 4dd951a commit 9644b76
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/resources/experimental/spatial_grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,13 @@ mod tests {
let global_transform = GlobalTransform::from(*transform_matrix.as_ref());
spatial_grid.insert(world.create_entity().build(), &global_transform);

assert!(spatial_grid.query(&global_transform, 1.0f32).len() == 1);
assert!(
spatial_grid
.query(&global_transform, 1.0f32)
.into_iter()
.count()
== 1
);
}

}

0 comments on commit 9644b76

Please sign in to comment.