()
| 522 | |
| 523 | #[test] |
| 524 | fn from_natural() { |
| 525 | let real = Real::from_natural(42, 0); |
| 526 | assert_eq!(real.to_i32(), Some(42)); |
| 527 | assert!( |
| 528 | (real.to_f64_lossy() - 42.0).abs() < f64::EPSILON, |
| 529 | "Expected real.to_f64() to be approximately 42.0" |
| 530 | ); |
| 531 | } |
| 532 | |
| 533 | #[test] |
| 534 | fn operations() { |
no outgoing calls
no test coverage detected