| 19 | include Helper::Omittable |
| 20 | |
| 21 | def setup |
| 22 | @raw_data = [ |
| 23 | 1, 2, |
| 24 | 3, 4, |
| 25 | |
| 26 | 5, 6, |
| 27 | 7, 8, |
| 28 | |
| 29 | 9, 10, |
| 30 | 11, 12, |
| 31 | ] |
| 32 | data = Arrow::Buffer.new(@raw_data.pack("c*")) |
| 33 | @shape = [3, 2, 2] |
| 34 | strides = [] |
| 35 | names = ["a", "b", "c"] |
| 36 | @tensor = Arrow::Tensor.new(Arrow::Int8DataType.new, |
| 37 | data, |
| 38 | @shape, |
| 39 | strides, |
| 40 | names) |
| 41 | end |
| 42 | |
| 43 | def test_equal |
| 44 | data = Arrow::Buffer.new(@raw_data.pack("c*")) |