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

Function test_shift_neg_float64

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

Source from the content-addressed store, hash-verified

101
102 #[test]
103 fn test_shift_neg_float64() {
104 let a: Float64Array = vec![Some(1.), None, Some(4.)].into();
105 let res = shift(&a, -1).unwrap();
106 let expected: Float64Array = vec![None, Some(4.), None].into();
107 assert_eq!(res.as_ref(), &expected);
108 }
109
110 #[test]
111 fn test_shift_pos_float64() {

Callers

nothing calls this directly

Calls 1

shiftFunction · 0.85

Tested by

no test coverage detected