Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
adding tests for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
mseth10 committed Feb 22, 2019
1 parent 14d9f64 commit 6db3b7a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/python/unittest/test_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -6523,7 +6523,9 @@ def test_slice_forward_backward(a, index):
(slice(1, 10), slice(2, 5), slice(3, 6), slice(7, 10)),
(slice(1, 10, 2), slice(2, 9, 3), slice(3, 6, 5), slice(7, 10, 2)),
(slice(None, None, -1), slice(None, None, -1), slice(None, None, -1)),
(slice(10, 0, -2), slice(5, 2, -1), slice(7, None, 3), slice(None, 12, 4))]
(slice(10, 0, -2), slice(5, 2, -1), slice(7, None, 3), slice(None, 12, 4)),
(slice(4, -1, -2), slice(4, -1, -1), slice(0, 5, 1), slice(7, -1, -1)),
(slice(0, 0, -2), slice(0, 5, 1), slice(3, 3, 1), slice(7, -1, -1))]
for index in index_list:
test_slice_forward_backward(arr, index)

Expand Down

0 comments on commit 6db3b7a

Please sign in to comment.