transform: improve despawn_recursive tests
This commit is contained in:
parent
311f04f858
commit
3007201eac
@ -100,7 +100,9 @@ mod tests {
|
|||||||
command_buffer
|
command_buffer
|
||||||
.spawn_as_entity(parent_entity, (1u32, 2u64))
|
.spawn_as_entity(parent_entity, (1u32, 2u64))
|
||||||
.with_children(|parent| {
|
.with_children(|parent| {
|
||||||
parent.spawn((1u32, 2u64));
|
parent.spawn((1u32, 2u64)).with_children(|parent| {
|
||||||
|
parent.spawn((1u32, 2u64));
|
||||||
|
});
|
||||||
parent.spawn((1u32, 2u64));
|
parent.spawn((1u32, 2u64));
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -115,7 +117,7 @@ mod tests {
|
|||||||
.iter()
|
.iter()
|
||||||
.map(|(a, b)| (*a, *b))
|
.map(|(a, b)| (*a, *b))
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
// parent_entity and its children should be deleted,
|
// parent_entity and its children should be deleted,
|
||||||
// the (0, 0) tuples remaining.
|
// the (0, 0) tuples remaining.
|
||||||
assert_eq!(results, vec![(0u32, 0u64), (0u32, 0u64), (0u32, 0u64)]);
|
assert_eq!(results, vec![(0u32, 0u64), (0u32, 0u64), (0u32, 0u64)]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user