Skip to content

Commit 7fe1ffd

Browse files
committed
add tests for arrays of ints
1 parent 18ea042 commit 7fe1ffd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test_indexing.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,12 @@ class TestAsync:
20192019
((0, slice(None)), np.array([1, 2])),
20202020
((slice(None), 0), np.array([1, 3])),
20212021
((slice(None), slice(None)), np.array([[1, 2], [3, 4]])),
2022-
# TODO array of ints
2022+
# array of ints
2023+
(([0]), np.array([[1, 2]])),
2024+
(([1]), np.array([[3, 4]])),
2025+
(([0], [1]), np.array(2)),
2026+
(([0, 1], [0]), np.array([[1], [3]])),
2027+
(([0, 1], [0, 1]), np.array([[1, 2], [3, 4]])),
20232028
# TODO boolean array
20242029
],
20252030
)

0 commit comments

Comments
 (0)