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

Method test_sliced

ruby/red-arrow-format/test/test-float64-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 = [-Float::INFINITY, -0.0, nil, +0.0, +Float::INFINITY]
48 array1 = ArrowFormat::Float64Array.new(values)
49 array2 = ArrowFormat::Float64Array.new([0.0, *values, 0.0])
50 assert_equal(array1, array2.slice(1, 5))
51 end
52
53 def test_sliced_different_content
54 values = [-Float::INFINITY, -0.0, nil, +0.0, +Float::INFINITY]

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected