We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5471dc7 commit 14f1193Copy full SHA for 14f1193
array_api_tests/test_indexing.py
@@ -41,7 +41,7 @@ def test_slicing(size, s):
41
42
# Sanity check that the strategies are working properly
43
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"
+ assert -size <= s.start <= size, "Sanity check failed. This indicates a bug in the test suite"
45
if s.stop is not None:
46
if s.step is None or s.step > 0:
47
assert -size <= s.stop <= size, "Sanity check failed. This indicates a bug in the test suite"
0 commit comments