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

Function test_bool_array_and_nulls

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

Source from the content-addressed store, hash-verified

617
618 #[test]
619 fn test_bool_array_and_nulls() {
620 let a = BooleanArray::from(vec![
621 None,
622 None,
623 None,
624 Some(false),
625 Some(false),
626 Some(false),
627 Some(true),
628 Some(true),
629 Some(true),
630 ]);
631 let b = BooleanArray::from(vec![
632 None,
633 Some(false),
634 Some(true),
635 None,
636 Some(false),
637 Some(true),
638 None,
639 Some(false),
640 Some(true),
641 ]);
642 let c = and(&a, &b).unwrap();
643
644 let expected = BooleanArray::from(vec![
645 None,
646 None,
647 None,
648 None,
649 Some(false),
650 Some(false),
651 None,
652 Some(false),
653 Some(true),
654 ]);
655
656 assert_eq!(c, expected);
657 }
658
659 #[test]
660 fn test_bool_array_and_sliced_same_offset() {

Callers

nothing calls this directly

Calls 1

andFunction · 0.85

Tested by

no test coverage detected