| 41 | end |
| 42 | |
| 43 | def test_equal |
| 44 | data = Arrow::Buffer.new(@raw_data.pack("c*")) |
| 45 | strides = [] |
| 46 | names = ["a", "b", "c"] |
| 47 | other_tensor = Arrow::Tensor.new(Arrow::Int8DataType.new, |
| 48 | data, |
| 49 | @shape, |
| 50 | strides, |
| 51 | names) |
| 52 | assert_equal(@tensor, |
| 53 | other_tensor) |
| 54 | end |
| 55 | |
| 56 | def test_value_data_type |
| 57 | assert_equal(Arrow::Int8DataType, @tensor.value_data_type.class) |