Skip to content

Commit

Permalink
add unit test to check all none (#1405)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwener authored Mar 7, 2022
1 parent 1fbe618 commit e40bc91
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions arrow/src/array/array_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1688,6 +1688,16 @@ mod tests {
assert_eq!(3, arr.len())
}

#[test]
fn test_all_none_fixed_size_binary_array_from_sparse_iter() {
let none_option: Option<[u8; 32]> = None;
let input_arg = vec![none_option, none_option, none_option];
let arr =
FixedSizeBinaryArray::try_from_sparse_iter(input_arg.into_iter()).unwrap();
assert_eq!(0, arr.value_length());
assert_eq!(3, arr.len())
}

#[test]
fn test_fixed_size_binary_array_from_sparse_iter() {
let input_arg = vec![
Expand Down

0 comments on commit e40bc91

Please sign in to comment.