Skip to content

Commit ed241bf

Browse files
committed
add comment about max_side=50
1 parent 8d797c3 commit ed241bf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

array_api_tests/test_sorting_functions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ def assert_scalar_in_set(
3434
x=hh.arrays(
3535
dtype=hh.real_dtypes,
3636
shape=hh.shapes(min_dims=1, min_side=1, max_side=50),
37+
# argsort needs to be tested on big enough arrays, hence we set `max_side=50`
38+
# see https://github.com/data-apis/array-api-tests/issues/389
3739
elements={"allow_nan": False},
3840
),
3941
data=st.data(),
@@ -95,6 +97,8 @@ def test_argsort(x, data):
9597
x=hh.arrays(
9698
dtype=hh.real_dtypes,
9799
shape=hh.shapes(min_dims=1, min_side=1, max_side=50),
100+
# sort needs to be tested on big enough arrays, hence we set `max_side=50`
101+
# see https://github.com/data-apis/array-api-tests/issues/389
98102
elements={"allow_nan": False},
99103
),
100104
data=st.data(),

0 commit comments

Comments
 (0)