test/test-chunked-array.rb in red-arrow-11.0.0 vs test/test-chunked-array.rb in red-arrow-12.0.0

- old
+ new

@@ -184,6 +184,15 @@ test("#cast") do chunked_array = Arrow::ChunkedArray.new([[1, nil, 3]]) assert_equal(Arrow::ChunkedArray.new([["1", nil, "3"]]), chunked_array.cast(:string)) end + + test("#index") do + arrays = [ + Arrow::Int32Array.new([1, 2]), + Arrow::Int32Array.new([3, 4, 5]), + ] + chunked_array = Arrow::ChunkedArray.new(arrays) + assert_equal(2, chunked_array.index(3)) + end end