Skip to content

Commit 7d29cfe

Browse files
committed
Fix the slice start bounds
See data-apis/array-api#292.
1 parent e758090 commit 7d29cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/hypothesis_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def slices(draw, sizes):
260260
# The spec does not specify out of bounds behavior.
261261
max_step_size = draw(integers(1, max(1, size)))
262262
step = draw(one_of(integers(-max_step_size, -1), integers(1, max_step_size), none()))
263-
start = draw(one_of(integers(-size, max(0, size-1)), none()))
263+
start = draw(one_of(integers(-size, size), none()))
264264
if step is None or step > 0:
265265
stop = draw(one_of(integers(-size, size)), none())
266266
else:

0 commit comments

Comments
 (0)