| 146 | end |
| 147 | |
| 148 | def test_export_import |
| 149 | chunks = [ |
| 150 | build_boolean_array([true, false, true]), |
| 151 | build_boolean_array([false, nil]), |
| 152 | ] |
| 153 | original_chunked_array = Arrow::ChunkedArray.new(chunks) |
| 154 | c_abi_array_stream = original_chunked_array.export |
| 155 | assert_equal(original_chunked_array, |
| 156 | Arrow::ChunkedArray.import(c_abi_array_stream)) |
| 157 | end |
| 158 | end |