Skip to content

Commit d7908bd

Browse files
committed
Restored test with nulls.
1 parent 545ee25 commit d7908bd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

rust/arrow/src/compute/arithmetic_kernels.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ mod tests {
126126
);
127127
}
128128

129-
// #[test]
130-
// fn test_primitive_array_add_with_nulls() {
131-
// let a = Int32Array::from(vec![Some(5), None, Some(7), None]);
132-
// let b = Int32Array::from(vec![None, None, Some(6), Some(7)]);
133-
// let c = add(&a, &b).unwrap();
134-
// assert_eq!(true, c.is_null(0));
135-
// assert_eq!(true, c.is_null(1));
136-
// assert_eq!(false, c.is_null(2));
137-
// assert_eq!(true, c.is_null(3));
138-
// assert_eq!(13, c.value(2));
139-
// }
129+
#[test]
130+
fn test_primitive_array_add_with_nulls() {
131+
let a = Int32Array::from(vec![Some(5), None, Some(7), None]);
132+
let b = Int32Array::from(vec![None, None, Some(6), Some(7)]);
133+
let c = add(&a, &b).unwrap();
134+
assert_eq!(true, c.is_null(0));
135+
assert_eq!(true, c.is_null(1));
136+
assert_eq!(false, c.is_null(2));
137+
assert_eq!(true, c.is_null(3));
138+
assert_eq!(13, c.value(2));
139+
}
140140
}

0 commit comments

Comments
 (0)