(to_test: &StringViewArray)
| 1370 | assert!(array.buffers.len() > 1); |
| 1371 | |
| 1372 | fn check_gc(to_test: &StringViewArray) { |
| 1373 | let gc = to_test.gc(); |
| 1374 | assert_ne!(to_test.data_buffers().len(), gc.data_buffers().len()); |
| 1375 | |
| 1376 | to_test.iter().zip(gc.iter()).for_each(|(a, b)| { |
| 1377 | assert_eq!(a, b); |
| 1378 | }); |
| 1379 | assert_eq!(to_test.len(), gc.len()); |
| 1380 | } |
| 1381 | |
| 1382 | check_gc(&array); |
| 1383 | check_gc(&array.slice(1, 3)); |