extern crate nmbr_float; use nmbr_float::FloatingPoint; use nmbr_float::float32; #[test] fn test_float_impl() { let n1: f32 = FloatingPoint::nan(); assert_eq!(n1.is_nan(), true); } #[test] fn test_constants() { let x = float32::consts::PI; assert!(x > 3.14159); assert!(x < 3.14160); }