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

Function test_bool_array_not_sliced

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

Source from the content-addressed store, hash-verified

605
606 #[test]
607 fn test_bool_array_not_sliced() {
608 let a = BooleanArray::from(vec![None, Some(true), Some(false), None, Some(true)]);
609 let a = a.slice(1, 4);
610 let a = a.as_any().downcast_ref::<BooleanArray>().unwrap();
611 let c = not(a).unwrap();
612
613 let expected = BooleanArray::from(vec![Some(false), Some(true), None, Some(false)]);
614
615 assert_eq!(c, expected);
616 }
617
618 #[test]
619 fn test_bool_array_and_nulls() {

Callers

nothing calls this directly

Calls 3

notFunction · 0.85
sliceMethod · 0.45
as_anyMethod · 0.45

Tested by

no test coverage detected