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

Function test_shift_pos

arrow-select/src/window.rs:95–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94 #[test]
95 fn test_shift_pos() {
96 let a: Int32Array = vec![Some(1), None, Some(4)].into();
97 let res = shift(&a, 1).unwrap();
98 let expected: Int32Array = vec![None, Some(1), None].into();
99 assert_eq!(res.as_ref(), &expected);
100 }
101
102 #[test]
103 fn test_shift_neg_float64() {

Callers

nothing calls this directly

Calls 1

shiftFunction · 0.85

Tested by

no test coverage detected