Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 7dedba7 commit 335e2ce
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_getitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,15 @@ def test_single_int(daa: dak.Array, caa: ak.Array) -> None:
assert caa["points"][i].tolist() == daa["points"][i].compute().tolist()


@pytest.mark.parametrize("dtype", [np.int8, np.uint8, np.int16, np.uint16, np.int32, np.uint32, np.int64, np.uint64])
@pytest.mark.parametrize(
"dtype",
[np.int8, np.uint8, np.int16, np.uint16, np.int32, np.uint32, np.int64, np.uint64],
)
def test_multi_int(daa: dak.Array, caa: ak.Array, dtype: type) -> None:
a = daa["points"]["x"]
aix = ak.zeros_like(a, dtype=dtype) # take first elements
aix = ak.zeros_like(a, dtype=dtype) # take first elements
c = caa["points"]["x"]
cix = ak.zeros_like(c, dtype=dtype) # take first elements
cix = ak.zeros_like(c, dtype=dtype) # take first elements
assert_eq(
a[aix],
c[cix],
Expand Down

0 comments on commit 335e2ce

Please sign in to comment.