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

Method test_sliced

ruby/red-arrow-format/test/test-uint32-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 = [0, nil, (2 ** 32) - 1]
48 array1 = ArrowFormat::UInt32Array.new(values)
49 array2 = ArrowFormat::UInt32Array.new([0, *values, 0])
50 assert_equal(array1, array2.slice(1, 3))
51 end
52
53 def test_sliced_different_content
54 values = [0, nil, (2 ** 32) - 1]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected