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

Function test_bitwise_unary_not

arrow-array/src/array/boolean_array.rs:1298–1303  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1296
1297 #[test]
1298 fn test_bitwise_unary_not() {
1299 let arr = BooleanArray::from(vec![true, false, true, false]);
1300 let result = arr.bitwise_unary(|x| !x);
1301 let expected = BooleanArray::from(vec![false, true, false, true]);
1302 assert_eq!(result, expected);
1303 }
1304
1305 #[test]
1306 fn test_bitwise_unary_preserves_nulls() {

Callers

nothing calls this directly

Calls 1

bitwise_unaryMethod · 0.80

Tested by

no test coverage detected