Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Feb 15, 2022
1 parent 6805821 commit f165759
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/it/array/binary/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,10 @@ fn value_unchecked_with_wrong_offsets_panics() {
// even if `0` is in bounds
unsafe { array.value_unchecked(0) };
}

#[test]
fn debug() {
let array = BinaryArray::<i32>::from(&[Some([1, 2].as_ref()), Some(&[]), None]);

assert_eq!(format!("{:?}", array), "BinaryArray[[1, 2], [], None]");
}
7 changes: 7 additions & 0 deletions tests/it/array/utf8/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,10 @@ fn index_out_of_bounds_panics() {

array.value(3);
}

#[test]
fn debug() {
let array = Utf8Array::<i32>::from(&[Some("aa"), Some(""), None]);

assert_eq!(format!("{:?}", array), "Utf8Array[aa, , None]");
}

0 comments on commit f165759

Please sign in to comment.