()
| 373 | |
| 374 | #[test] |
| 375 | fn test_string_concat() { |
| 376 | let left = [Some("foo"), Some("bar"), None] |
| 377 | .into_iter() |
| 378 | .collect::<StringArray>(); |
| 379 | let right = [None, Some("yyy"), Some("zzz")] |
| 380 | .into_iter() |
| 381 | .collect::<StringArray>(); |
| 382 | |
| 383 | let output = concat_elements_utf8(&left, &right).unwrap(); |
| 384 | |
| 385 | let expected = [None, Some("baryyy"), None] |
| 386 | .into_iter() |
| 387 | .collect::<StringArray>(); |
| 388 | |
| 389 | assert_eq!(output, expected); |
| 390 | } |
| 391 | |
| 392 | #[test] |
| 393 | fn test_string_concat_empty_string() { |
nothing calls this directly
no test coverage detected