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

Function test_bool_array_or_nulls

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

Source from the content-addressed store, hash-verified

396
397 #[test]
398 fn test_bool_array_or_nulls() {
399 let a = BooleanArray::from(vec![
400 None,
401 None,
402 None,
403 Some(false),
404 Some(false),
405 Some(false),
406 Some(true),
407 Some(true),
408 Some(true),
409 ]);
410 let b = BooleanArray::from(vec![
411 None,
412 Some(false),
413 Some(true),
414 None,
415 Some(false),
416 Some(true),
417 None,
418 Some(false),
419 Some(true),
420 ]);
421 let c = or(&a, &b).unwrap();
422
423 let expected = BooleanArray::from(vec![
424 None,
425 None,
426 None,
427 None,
428 Some(false),
429 Some(true),
430 None,
431 Some(true),
432 Some(true),
433 ]);
434
435 assert_eq!(c, expected);
436 }
437
438 #[test]
439 fn test_boolean_array_kleene_no_remainder() {

Callers

nothing calls this directly

Calls 1

orFunction · 0.85

Tested by

no test coverage detected