@@ -192,7 +192,7 @@ def test_list_child_type
192192 list_column . logical_type . child_type
193193 end
194194
195- assert ( child_types . all? { | child_type | child_type . is_a? ( DuckDB ::LogicalType ) } )
195+ assert ( child_types . all? ( DuckDB ::LogicalType ) )
196196 assert_equal ( %i[ integer varchar ] , child_types . map ( &:type ) )
197197 end
198198
@@ -210,7 +210,7 @@ def test_array_child_type
210210 array_column . logical_type . child_type
211211 end
212212
213- assert ( child_types . all? { | child_type | child_type . is_a? ( DuckDB ::LogicalType ) } )
213+ assert ( child_types . all? ( DuckDB ::LogicalType ) )
214214 assert_equal ( %i[ integer varchar ] , child_types . map ( &:type ) )
215215 end
216216
@@ -258,7 +258,7 @@ def test_union_each_member_type
258258 union_logical_type = union_column . logical_type
259259 member_types = union_logical_type . each_member_type . to_a
260260
261- assert ( member_types . all? { | member_type | member_type . is_a? ( DuckDB ::LogicalType ) } )
261+ assert ( member_types . all? ( DuckDB ::LogicalType ) )
262262 assert_equal ( %i[ integer varchar ] , member_types . map ( &:type ) )
263263 end
264264
@@ -281,7 +281,7 @@ def test_struct_each_child_type
281281 struct_logical_type = struct_column . logical_type
282282 child_types = struct_logical_type . each_child_type . to_a
283283
284- assert ( child_types . all? { | child_type | child_type . is_a? ( DuckDB ::LogicalType ) } )
284+ assert ( child_types . all? ( DuckDB ::LogicalType ) )
285285 assert_equal ( %i[ varchar integer ] , child_types . map ( &:type ) )
286286 end
287287
0 commit comments