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