()
| 499 | /// Tests with an offset |
| 500 | #[test] |
| 501 | fn length_offsets_string() { |
| 502 | let a = StringArray::from(vec![Some("hello"), Some(" "), Some("world"), None]); |
| 503 | let b = a.slice(1, 3); |
| 504 | let result = length(&b).unwrap(); |
| 505 | let result: &Int32Array = result.as_primitive(); |
| 506 | |
| 507 | let expected = Int32Array::from(vec![Some(1), Some(5), None]); |
| 508 | assert_eq!(&expected, result); |
| 509 | } |
| 510 | |
| 511 | #[test] |
| 512 | fn length_offsets_binary() { |
nothing calls this directly
no test coverage detected