MCPcopy Create free account
hub / github.com/apache/arrow / test_new

Method test_new

c_glib/test/test-date32-array.rb:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 include Helper::Omittable
21
22 def test_new
23 after_epoch = 17406 # 2017-08-28
24 raw_data = [0, after_epoch]
25 assert_equal(build_date32_array([*raw_data, nil]),
26 Arrow::Date32Array.new(3,
27 Arrow::Buffer.new(raw_data.pack("l*")),
28 Arrow::Buffer.new([0b011].pack("C*")),
29 -1))
30 end
31
32 def test_buffer
33 before_epoch = -3653 # 1960-01-01

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected