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

Function test_shift_neg

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

Source from the content-addressed store, hash-verified

85
86 #[test]
87 fn test_shift_neg() {
88 let a: Int32Array = vec![Some(1), None, Some(4)].into();
89 let res = shift(&a, -1).unwrap();
90 let expected: Int32Array = vec![None, Some(4), None].into();
91 assert_eq!(res.as_ref(), &expected);
92 }
93
94 #[test]
95 fn test_shift_pos() {

Callers

nothing calls this directly

Calls 1

shiftFunction · 0.85

Tested by

no test coverage detected