()
| 23 | |
| 24 | #[test] |
| 25 | fn reset_radius() { |
| 26 | let mut world = World::default(); |
| 27 | let circle_entity: Entity = world.push((Circle { radius: 1.0f32 },)); |
| 28 | set_circle_size(&mut world, &circle_entity, 2.0f32); |
| 29 | |
| 30 | if let Some(entry) = world.entry(circle_entity) { |
| 31 | let circle: Circle = *entry.get_component::<Circle>().unwrap(); |
| 32 | assert_approx_eq!(circle.radius, 2.0f32); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | #[test] |
| 37 | #[should_panic] |
nothing calls this directly
no test coverage detected