Skip to content

Commit 14f1193

Browse files
committed
Fix the slicing start value sanity check
It was not updated along with the strategy in e17273f.
1 parent 5471dc7 commit 14f1193

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_slicing(size, s):
4141

4242
# Sanity check that the strategies are working properly
4343
if s.start is not None:
44-
assert -size <= s.start <= max(0, size - 1), "Sanity check failed. This indicates a bug in the test suite"
44+
assert -size <= s.start <= size, "Sanity check failed. This indicates a bug in the test suite"
4545
if s.stop is not None:
4646
if s.step is None or s.step > 0:
4747
assert -size <= s.stop <= size, "Sanity check failed. This indicates a bug in the test suite"

0 commit comments

Comments
 (0)