()
| 421 | |
| 422 | #[test] |
| 423 | fn test_string_concat_error() { |
| 424 | let left = StringArray::from(vec!["foo", "bar"]); |
| 425 | let right = StringArray::from(vec!["baz"]); |
| 426 | |
| 427 | let output = concat_elements_utf8(&left, &right); |
| 428 | |
| 429 | assert_eq!( |
| 430 | output.unwrap_err().to_string(), |
| 431 | "Compute error: Arrays must have the same length: 2 != 1".to_string() |
| 432 | ); |
| 433 | } |
| 434 | |
| 435 | #[test] |
| 436 | fn test_string_concat_slice() { |
nothing calls this directly
no test coverage detected