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

Method test_int32

c_glib/test/test-run-end-encode.rb:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 include Helper::Omittable
21
22 def test_int32
23 array = build_int32_array([1, 3, 1, 1, -1, -1])
24 assert_equal(<<-STRING.chomp, array.run_end_encode.to_s)
25
26-- run_ends:
27 [
28 1,
29 2,
30 4,
31 6
32 ]
33-- values:
34 [
35 1,
36 3,
37 1,
38 -1
39 ]
40 STRING
41 assert_equal(array, array.run_end_encode.decode)
42 end
43
44 def test_string
45 array = build_string_array(["Ruby", "Ruby", "Python", "C++", "C++", "C++"])

Callers

nothing calls this directly

Calls 2

to_sMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected