()
| 707 | /// Tests with an offset |
| 708 | #[test] |
| 709 | fn bit_length_offsets_string() { |
| 710 | let a = StringArray::from(vec![Some("hello"), Some(" "), Some("world"), None]); |
| 711 | let b = a.slice(1, 3); |
| 712 | let result = bit_length(&b).unwrap(); |
| 713 | let result: &Int32Array = result.as_primitive(); |
| 714 | |
| 715 | let expected = Int32Array::from(vec![Some(8), Some(40), None]); |
| 716 | assert_eq!(&expected, result); |
| 717 | } |
| 718 | |
| 719 | #[test] |
| 720 | fn bit_length_offsets_binary() { |
nothing calls this directly
no test coverage detected