Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maniwani committed Feb 25, 2023
1 parent c271622 commit 1bae6b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_ecs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -734,8 +734,8 @@ mod tests {
assert_eq!(query.get(&world, b).unwrap(), &TableStored("def"));
assert_eq!(query.get(&world, c).unwrap(), &TableStored("ghi"));

world.entity_mut(b).take::<SparseStored>();
world.entity_mut(c).take::<SparseStored>();
world.entity_mut(b).remove::<SparseStored>();
world.entity_mut(c).remove::<SparseStored>();

assert_eq!(query.get(&world, a).unwrap(), &TableStored("abc"));
assert_eq!(query.get(&world, b).unwrap(), &TableStored("def"));
Expand Down Expand Up @@ -768,7 +768,7 @@ mod tests {
"archetype moves does not result in 'removed component' state"
);

world.entity_mut(b).take::<A>();
world.entity_mut(b).remove::<A>();
assert_eq!(
world.removed::<A>().collect::<Vec<_>>(),
&[a, b],
Expand Down

0 comments on commit 1bae6b9

Please sign in to comment.