()
| 968 | // tests for the utf-8 validation checking |
| 969 | #[test] |
| 970 | fn check_start_index() { |
| 971 | let array = StringArray::from(vec![Some("E=mc²"), Some("ascii")]); |
| 972 | let err = substring(&array, -1, None).unwrap_err().to_string(); |
| 973 | assert!(err.contains("invalid utf-8 boundary")); |
| 974 | } |
| 975 | |
| 976 | #[test] |
| 977 | fn check_length() { |
nothing calls this directly
no test coverage detected