Skip to content

Commit f27e349

Browse files
committed
Update test
1 parent be144f4 commit f27e349

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arrow-array/src/builder/struct_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ use std::sync::Arc;
6262
///
6363
/// // We can't obtain the ListBuilder<StructBuilder> with the expected generic types, because under the hood
6464
/// // the StructBuilder was returned as a Box<dyn ArrayBuilder> and passed as such to the ListBuilder constructor
65-
///
65+
///
6666
/// // This panics in runtime, even though we know that the builder is a ListBuilder<StructBuilder>.
6767
/// // let sb = col_struct_builder
6868
/// // .field_builder::<ListBuilder<StructBuilder>>(0)
@@ -648,7 +648,7 @@ mod tests {
648648

649649
#[test]
650650
#[should_panic(
651-
expected = "StructBuilder (Schema { fields: [Field { name: \"f1\", data_type: Int32, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }, Field { name: \"f2\", data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }], metadata: {} }) and field_builder with index 1 (Boolean) are of unequal lengths: (2 != 1)."
651+
expected = "StructBuilder (Schema { fields: [Field { \"f1\": Int32 }, Field { \"f2\": Boolean }], metadata: {} }) and field_builder with index 1 (Boolean) are of unequal lengths: (2 != 1)."
652652
)]
653653
fn test_struct_array_builder_unequal_field_builders_lengths() {
654654
let mut int_builder = Int32Builder::with_capacity(10);

0 commit comments

Comments
 (0)