mirror of
https://github.com/bevyengine/bevy
synced 2024-09-20 22:42:08 +00:00
Remove duplicate asserts in test (#5648)
# Objective
While poking around the hierarchy code, I wondered why some asserts in tests were duplicated.
Some git blame later, I found out that commit ( 8eb0440f1e
) added already existing asserts while removing others.
## Solution
Remove the duplicated asserts.
This commit is contained in:
parent
5ba5c8e375
commit
a70b9c5969
1 changed files with 0 additions and 7 deletions
|
@ -599,8 +599,6 @@ mod tests {
|
|||
);
|
||||
assert_eq!(*world.get::<Parent>(child3).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child4).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child3).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child4).unwrap(), Parent(parent));
|
||||
|
||||
let remove_children = [child1, child4];
|
||||
{
|
||||
|
@ -641,9 +639,6 @@ mod tests {
|
|||
assert_eq!(*world.get::<Parent>(child1).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child2).unwrap(), Parent(parent));
|
||||
|
||||
assert_eq!(*world.get::<Parent>(child1).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child2).unwrap(), Parent(parent));
|
||||
|
||||
world.entity_mut(parent).insert_children(1, &entities[3..]);
|
||||
let expected_children: SmallVec<[Entity; 8]> = smallvec![child1, child3, child4, child2];
|
||||
assert_eq!(
|
||||
|
@ -652,8 +647,6 @@ mod tests {
|
|||
);
|
||||
assert_eq!(*world.get::<Parent>(child3).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child4).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child3).unwrap(), Parent(parent));
|
||||
assert_eq!(*world.get::<Parent>(child4).unwrap(), Parent(parent));
|
||||
|
||||
let remove_children = [child1, child4];
|
||||
world.entity_mut(parent).remove_children(&remove_children);
|
||||
|
|
Loading…
Reference in a new issue