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

Method test_sliced

ruby/red-arrow-format/test/test-time32-array.rb:48–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46 end
47
48 def test_sliced
49 values = [@time_00_00_10, nil, @time_00_01_10]
50 array1 = ArrowFormat::Time32Array.new(:second, values)
51 array2 = ArrowFormat::Time32Array.new(:second, [0, *values, 0])
52 assert_equal(array1, array2.slice(1, 3))
53 end
54
55 def test_sliced_different_content
56 values = [@time_00_00_10, nil, @time_00_01_10]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected