| 20 | include Helper::Omittable |
| 21 | |
| 22 | def test_new |
| 23 | midnight = 0 |
| 24 | after_midnight = 60 * 10 # 00:10:00 |
| 25 | raw_data = [midnight, after_midnight] |
| 26 | data_type = Arrow::Time32DataType.new(:second) |
| 27 | assert_equal(build_time32_array(:second, [*raw_data, nil]), |
| 28 | Arrow::Time32Array.new(data_type, |
| 29 | 3, |
| 30 | Arrow::Buffer.new(raw_data.pack("l*")), |
| 31 | Arrow::Buffer.new([0b011].pack("C*")), |
| 32 | -1)) |
| 33 | end |
| 34 | |
| 35 | def test_buffer |
| 36 | midnight = 0 |