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

Method test_int8

c_glib/test/test-int-array-builder.rb:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 include Helper::Buildable
20
21 def test_int8
22 values = [-1, 2]
23 assert_equal(build_int_array([*values, nil]),
24 Arrow::Int8Array.new(3,
25 Arrow::Buffer.new(values.pack("c*")),
26 Arrow::Buffer.new([0b011].pack("C*")),
27 -1))
28 end
29
30 def test_int16
31 border_value = (2 ** (8 - 1))

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected