mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
transform: improve despawn_recursive tests
This commit is contained in:
parent
311f04f858
commit
3007201eac
1 changed files with 4 additions and 2 deletions
|
@ -100,7 +100,9 @@ mod tests {
|
|||
command_buffer
|
||||
.spawn_as_entity(parent_entity, (1u32, 2u64))
|
||||
.with_children(|parent| {
|
||||
parent.spawn((1u32, 2u64));
|
||||
parent.spawn((1u32, 2u64)).with_children(|parent| {
|
||||
parent.spawn((1u32, 2u64));
|
||||
});
|
||||
parent.spawn((1u32, 2u64));
|
||||
});
|
||||
|
||||
|
@ -115,7 +117,7 @@ mod tests {
|
|||
.iter()
|
||||
.map(|(a, b)| (*a, *b))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
||||
// parent_entity and its children should be deleted,
|
||||
// the (0, 0) tuples remaining.
|
||||
assert_eq!(results, vec![(0u32, 0u64), (0u32, 0u64), (0u32, 0u64)]);
|
||||
|
|
Loading…
Reference in a new issue