MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_string_concat_error

Function test_string_concat_error

arrow-string/src/concat_elements.rs:423–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

concat_elements_utf8Function · 0.85

Tested by

no test coverage detected