diff --git a/src/integer.rs b/src/integer.rs index 29755b7..6a9a231 100644 --- a/src/integer.rs +++ b/src/integer.rs @@ -1033,7 +1033,7 @@ impl std::fmt::Display for Planar64Affine3{ #[test] fn test_sqrt(){ let r=Planar64::int(400); - println!("r{}",r.get()); + assert_eq!(1717986918400,r.get()); let s=r.sqrt(); - println!("s{}",s.get()); + assert_eq!(85899345920,s.get()); } \ No newline at end of file diff --git a/src/model_physics.rs b/src/model_physics.rs index 250398a..2a0edc0 100644 --- a/src/model_physics.rs +++ b/src/model_physics.rs @@ -547,5 +547,5 @@ impl MeshQuery for MinkowskiM fn build_me_a_cube(){ let unit_cube=crate::primitives::unit_cube(); let mesh=PhysicsMesh::from(&unit_cube); - println!("mesh={:?}",mesh); + //println!("mesh={:?}",mesh); } \ No newline at end of file diff --git a/src/worker.rs b/src/worker.rs index 4a79308..214157a 100644 --- a/src/worker.rs +++ b/src/worker.rs @@ -175,8 +175,8 @@ impl<'a,Task:Send+'a> INWorker<'a,Task>{ #[test]//How to run this test with printing: cargo test --release -- --nocapture fn test_worker() { - println!("hiiiii"); // Create the worker thread + let test_body=crate::physics::Body::new(crate::integer::Planar64Vec3::ONE,crate::integer::Planar64Vec3::ONE,crate::integer::Planar64Vec3::ONE,crate::integer::Time::ZERO); let worker=QRWorker::new(crate::physics::Body::default(), |_|crate::physics::Body::new(crate::integer::Planar64Vec3::ONE,crate::integer::Planar64Vec3::ONE,crate::integer::Planar64Vec3::ONE,crate::integer::Time::ZERO) ); @@ -203,7 +203,7 @@ fn test_worker() { }; worker.send(task).unwrap(); - println!("value={}",worker.grab_clone()); + //assert_eq!(test_body,worker.grab_clone()); // wait long enough to see print from final task thread::sleep(std::time::Duration::from_millis(10));