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

Function test_shift_nil

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

Source from the content-addressed store, hash-verified

145
146 #[test]
147 fn test_shift_nil() {
148 let a: Int32Array = vec![Some(1), None, Some(4)].into();
149 let res = shift(&a, 0).unwrap();
150 let expected: Int32Array = vec![Some(1), None, Some(4)].into();
151 assert_eq!(res.as_ref(), &expected);
152 }
153
154 #[test]
155 fn test_shift_boundary_pos() {

Callers

nothing calls this directly

Calls 1

shiftFunction · 0.85

Tested by

no test coverage detected