/* Tests */ use nt_primes::NTPrimality; #[test] fn nearest(){ assert_eq!(2u8,0u8.nearest()); assert_eq!(2u8,0u8.nearest_greater().unwrap()); assert_eq!(None, 0u8.nearest_lesser()); assert_eq!(251,255u8.nearest()); assert_eq!(None,255u8.nearest_greater()); assert_eq!(18446744073709551557,u64::MAX.nearest()); //assert_ } //#[test] //fn delta