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

Method test_int32

c_glib/test/test-dictionary-encode.rb:22–43  ·  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, -3, -1])
24 assert_equal(<<-STRING.chomp, array.dictionary_encode.to_s)
25
26-- dictionary:
27 [
28 1,
29 3,
30 -1,
31 -3
32 ]
33-- indices:
34 [
35 0,
36 1,
37 0,
38 2,
39 3,
40 2
41 ]
42 STRING
43 end
44
45 def test_string
46 array = build_string_array(["Ruby", "Python", "Ruby"])

Callers

nothing calls this directly

Calls 1

to_sMethod · 0.45

Tested by

no test coverage detected