()
| 2448 | |
| 2449 | #[test] |
| 2450 | fn test_interval_precision() { |
| 2451 | let config = IntervalParseConfig::new(IntervalUnit::Month); |
| 2452 | |
| 2453 | let result = Interval::parse("100000.1 days", &config).unwrap(); |
| 2454 | let expected = Interval::new(0_i32, 100_000_i32, NANOS_PER_DAY / 10); |
| 2455 | |
| 2456 | assert_eq!(result, expected); |
| 2457 | } |
| 2458 | |
| 2459 | #[test] |
| 2460 | fn test_interval_addition() { |