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

Method test_sliced

ruby/red-arrow-format/test/test-utf8-array.rb:46–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 end
45
46 def test_sliced
47 values = ["Hello", nil, "World"]
48 array1 = ArrowFormat::UTF8Array.new(values)
49 array2 = ArrowFormat::UTF8Array.new(["", *values, ""])
50 assert_equal(array1, array2.slice(1, 3))
51 end
52
53 def test_sliced_different_content
54 values = ["Hello", nil, "World"]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected