MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_interval_precision

Function test_interval_precision

arrow-cast/src/parse.rs:2450–2457  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.50

Tested by

no test coverage detected