()
| 1533 | |
| 1534 | #[test] |
| 1535 | fn test_bitwise_unary_mut_sliced() { |
| 1536 | // Slicing shares the buffer, so _mut must return Err. |
| 1537 | let arr = BooleanArray::from(vec![true, false, true, true, false]); |
| 1538 | let sliced = arr.slice(1, 3); |
| 1539 | assert!(sliced.bitwise_unary_mut(|x| !x).is_err()); |
| 1540 | } |
| 1541 | |
| 1542 | #[test] |
| 1543 | fn test_bitwise_unary_mut_or_clone_sliced() { |