| 19 | include Helper::Buildable |
| 20 | |
| 21 | def test_new |
| 22 | value_offsets = Arrow::Buffer.new([0, 2, 5, 5].pack("l*")) |
| 23 | data = Arrow::Buffer.new("\x00\x01\x02\x03\x04") |
| 24 | assert_equal(build_binary_array(["\x00\x01", "\x02\x03\x04", nil]), |
| 25 | Arrow::BinaryArray.new(3, |
| 26 | value_offsets, |
| 27 | data, |
| 28 | Arrow::Buffer.new([0b011].pack("C*")), |
| 29 | -1)) |
| 30 | end |
| 31 | |
| 32 | def test_value |
| 33 | data = "\x00\x01\x02" |