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

Method test_sliced

ruby/red-arrow-format/test/test-binary-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 = ["\x00\x01".b, nil, "\xff\x10".b]
48 array1 = ArrowFormat::BinaryArray.new(values)
49 array2 = ArrowFormat::BinaryArray.new(["".b, *values, "".b])
50 assert_equal(array1, array2.slice(1, 3))
51 end
52
53 def test_sliced_different_content
54 values = ["\x00\x01".b, nil, "\xff\x10".b]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected