test scaffold
(
lhs_data: Vec<Option<Vec<Option<i32>>>>,
rhs_data: Vec<Option<Vec<Option<i32>>>>,
should_equal: bool,
)
| 1163 | fn list_array_equality() { |
| 1164 | // test scaffold |
| 1165 | fn do_comparison( |
| 1166 | lhs_data: Vec<Option<Vec<Option<i32>>>>, |
| 1167 | rhs_data: Vec<Option<Vec<Option<i32>>>>, |
| 1168 | should_equal: bool, |
| 1169 | ) { |
| 1170 | let lhs = ListArray::from_iter_primitive::<Int32Type, _, _>(lhs_data.clone()); |
| 1171 | let rhs = ListArray::from_iter_primitive::<Int32Type, _, _>(rhs_data.clone()); |
| 1172 | assert_eq!(lhs == rhs, should_equal); |
| 1173 | |
| 1174 | let lhs = LargeListArray::from_iter_primitive::<Int32Type, _, _>(lhs_data); |
| 1175 | let rhs = LargeListArray::from_iter_primitive::<Int32Type, _, _>(rhs_data); |
| 1176 | assert_eq!(lhs == rhs, should_equal); |
| 1177 | } |
| 1178 | |
| 1179 | do_comparison( |
| 1180 | vec![ |