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

Function test_bool_array_and_sliced_offset1

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

Source from the content-addressed store, hash-verified

700
701 #[test]
702 fn test_bool_array_and_sliced_offset1() {
703 let a = BooleanArray::from(vec![
704 false, false, false, false, false, false, false, false, false, false, true, true,
705 ]);
706 let b = BooleanArray::from(vec![false, true, false, true]);
707
708 let a = a.slice(8, 4);
709 let a = a.as_any().downcast_ref::<BooleanArray>().unwrap();
710
711 let c = and(a, &b).unwrap();
712
713 let expected = BooleanArray::from(vec![false, false, false, true]);
714
715 assert_eq!(expected, c);
716 }
717
718 #[test]
719 fn test_bool_array_and_sliced_offset2() {

Callers

nothing calls this directly

Calls 3

andFunction · 0.85
sliceMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected