Skip to content

Commit

Permalink
[DNM] Add simple slice test to cuda (#3242)
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Durant <[email protected]>
Co-authored-by: Jim Pivarski <[email protected]>
  • Loading branch information
3 people authored Nov 7, 2024
1 parent f3124c6 commit 307352f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests-cuda/test_3140_cuda_slicing.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@ def test_1904_drop_none_RecordArray():
]


def test_simple_slice():
arrg = ak.Array([[1, 2, 3], [0], [4, 5]], backend="cuda")
out = arrg[:, 0]
assert out.tolist() == [1, 0, 4]


def test_2246_slice_not_packed():
index = ak.Array(
ak.contents.ListOffsetArray(
Expand Down

0 comments on commit 307352f

Please sign in to comment.