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

Function test_interval_usize

arrow-buffer/src/native.rs:312–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310
311 #[test]
312 fn test_interval_usize() {
313 assert_eq!(IntervalDayTime::new(1, 0).as_usize(), 1);
314 assert_eq!(IntervalMonthDayNano::new(1, 0, 0).as_usize(), 1);
315
316 let a = IntervalDayTime::new(23, 53);
317 let b = IntervalDayTime::usize_as(a.as_usize());
318 assert_eq!(a, b);
319
320 let a = IntervalMonthDayNano::new(23, 53, 0);
321 let b = IntervalMonthDayNano::usize_as(a.as_usize());
322 assert_eq!(a, b);
323 }
324}

Callers

nothing calls this directly

Calls 1

as_usizeMethod · 0.80

Tested by

no test coverage detected