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

Method test_int16

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

Source from the content-addressed store, hash-verified

28 end
29
30 def test_int16
31 border_value = (2 ** (8 - 1))
32 values = [-1, border_value]
33 assert_equal(build_int_array([*values, nil]),
34 Arrow::Int16Array.new(3,
35 Arrow::Buffer.new(values.pack("s*")),
36 Arrow::Buffer.new([0b011].pack("C*")),
37 -1))
38 end
39
40 def test_int32
41 border_value = (2 ** (16 - 1))

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected