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

Function test_bool_array_and_sliced_offset2

arrow-arith/src/boolean.rs:719–733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

717
718 #[test]
719 fn test_bool_array_and_sliced_offset2() {
720 let a = BooleanArray::from(vec![false, false, true, true]);
721 let b = BooleanArray::from(vec![
722 false, false, false, false, false, false, false, false, false, true, false, true,
723 ]);
724
725 let b = b.slice(8, 4);
726 let b = b.as_any().downcast_ref::<BooleanArray>().unwrap();
727
728 let c = and(&a, b).unwrap();
729
730 let expected = BooleanArray::from(vec![false, false, false, true]);
731
732 assert_eq!(expected, c);
733 }
734
735 #[test]
736 fn test_bool_array_and_nulls_offset() {

Callers

nothing calls this directly

Calls 3

andFunction · 0.85
sliceMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected