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

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgecarleitao committed Dec 18, 2022
1 parent 089ea84 commit 89e9aed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/it/compute/utf8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ fn with_nulls_utf8_lower<O: Offset>() -> Result<()> {
cases
.into_iter()
.try_for_each::<_, Result<()>>(|(array, expected)| {
let array = Utf8Array::<O>::from(&array);
let array = Utf8Array::<O>::from(array);
let result = lower(&array)?;
assert_eq!(array.len(), result.len());

let result = result.as_any().downcast_ref::<Utf8Array<O>>().unwrap();
let expected = Utf8Array::<O>::from(&expected);
let expected = Utf8Array::<O>::from(expected);

assert_eq!(&expected, result);
Ok(())
Expand Down Expand Up @@ -115,12 +115,12 @@ fn without_nulls_utf8_lower<O: Offset>() -> Result<()> {
cases
.into_iter()
.try_for_each::<_, Result<()>>(|(array, expected)| {
let array = Utf8Array::<O>::from_slice(&array);
let array = Utf8Array::<O>::from_slice(array);
let result = lower(&array)?;
assert_eq!(array.len(), result.len());

let result = result.as_any().downcast_ref::<Utf8Array<O>>().unwrap();
let expected = Utf8Array::<O>::from_slice(&expected);
let expected = Utf8Array::<O>::from_slice(expected);
assert_eq!(&expected, result);
Ok(())
})?;
Expand Down Expand Up @@ -236,12 +236,12 @@ fn with_nulls_utf8<O: Offset>() -> Result<()> {
cases
.into_iter()
.try_for_each::<_, Result<()>>(|(array, expected)| {
let array = Utf8Array::<O>::from(&array);
let array = Utf8Array::<O>::from(array);
let result = upper(&array)?;
assert_eq!(array.len(), result.len());

let result = result.as_any().downcast_ref::<Utf8Array<O>>().unwrap();
let expected = Utf8Array::<O>::from(&expected);
let expected = Utf8Array::<O>::from(expected);

assert_eq!(&expected, result);
Ok(())
Expand Down Expand Up @@ -300,12 +300,12 @@ fn without_nulls_utf8<O: Offset>() -> Result<()> {
cases
.into_iter()
.try_for_each::<_, Result<()>>(|(array, expected)| {
let array = Utf8Array::<O>::from_slice(&array);
let array = Utf8Array::<O>::from_slice(array);
let result = upper(&array)?;
assert_eq!(array.len(), result.len());

let result = result.as_any().downcast_ref::<Utf8Array<O>>().unwrap();
let expected = Utf8Array::<O>::from_slice(&expected);
let expected = Utf8Array::<O>::from_slice(expected);
assert_eq!(&expected, result);
Ok(())
})?;
Expand Down

0 comments on commit 89e9aed

Please sign in to comment.