1 2 3 4 5 6 7 8
use neophys::{body::Body, engine::Engine}; #[test] fn adding_body() { let mut x = Engine::default(); x.add_body(Body::new(neophys::body::BodyType::GPoint, 1.0)); assert_eq!(1, x.count_bodies()) }