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

Function test_array_slice_integer_scalars

python/pyarrow/tests/test_array.py:571–577  ·  view source on GitHub ↗
(scalar_type)

Source from the content-addressed store, hash-verified

569 pa.uint8(), pa.uint16(), pa.uint32(), pa.uint64(),
570])
571def test_array_slice_integer_scalars(scalar_type):
572 arr = pa.array(range(10))
573 offsets = pa.array([2, 4], type=scalar_type)
574
575 result = arr.slice(offsets[0], offsets[1])
576
577 assert result.equals(arr.slice(2, 4))
578
579
580@pytest.mark.numpy

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.80
arrayMethod · 0.45
sliceMethod · 0.45

Tested by

no test coverage detected