MCPcopy Create free account
hub / github.com/OxideEngine/Oxide / reset_radius

Function reset_radius

oxide_math/test/circle.rs:25–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls 1

set_circle_sizeFunction · 0.85

Tested by

no test coverage detected