Skip to content

Commit 75114ae

Browse files
committed
one more test
1 parent 0e0b34f commit 75114ae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_indexing.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ def test_setitem_repeated_index():
430430
array.oindex[(indexer,)] = [0, 1, 2, 3]
431431
np.testing.assert_array_equal(array[:], np.array([3, 0, 0, 1]))
432432

433+
indexer = np.array([-1, 0, 0, -1])
434+
array.oindex[(indexer,)] = [0, 1, 2, 3]
435+
np.testing.assert_array_equal(array[:], np.array([2, 0, 0, 3]))
436+
433437

434438
Index = list[int] | tuple[slice | int | list[int], ...]
435439

0 commit comments

Comments
 (0)