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

Method test_new

c_glib/test/test-half-float-array.rb:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 end
27
28 def test_new
29 values = [@one, @zero, @positive_infinity, nil]
30 data = values[0..-2].pack("S*")
31 null_bitmap = [0b0111].pack("C*")
32 assert_equal(build_half_float_array(values),
33 Arrow::HalfFloatArray.new(4,
34 Arrow::Buffer.new(data),
35 Arrow::Buffer.new(null_bitmap),
36 -1))
37 end
38
39 def test_buffer
40 builder = Arrow::HalfFloatArrayBuilder.new

Callers

nothing calls this directly

Calls 2

packMethod · 0.45
newMethod · 0.45

Tested by

no test coverage detected