use arrow2::array::*; use arrow2::offset::Offset; use super::{binary_cases, test_equal}; fn test_generic_string_equal() { let cases = binary_cases(); for (lhs, rhs, expected) in cases { let lhs = lhs.iter().map(|x| x.as_deref()); let rhs = rhs.iter().map(|x| x.as_deref()); let lhs = Utf8Array::::from_trusted_len_iter(lhs); let rhs = Utf8Array::::from_trusted_len_iter(rhs); test_equal(&lhs, &rhs, expected); } } #[test] fn utf8_equal() { test_generic_string_equal::() } #[test] fn large_utf8_equal() { test_generic_string_equal::() }