Skip to content

Commit c0ec0bb

Browse files
committed
Use the less helper in test_clip
1 parent fbec5fd commit c0ec0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_tests/test_operators_and_elementwise_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ def test_clip(x, data):
949949
), label="max")
950950

951951
# min > max is undefined (but allow nans)
952-
assume(min is None or max is None or not xp.any(xp.asarray(min) > xp.asarray(max)))
952+
assume(min is None or max is None or not xp.any(ah.less(xp.asarray(max), xp.asarray(min))))
953953

954954
kw = data.draw(
955955
hh.specified_kwargs(

0 commit comments

Comments
 (0)