File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 43
43
# waiting on NumPy to allow/revert distinct NaNs for np.unique
44
44
# https://github.com/numpy/numpy/issues/20326#issuecomment-1012380448
45
45
array_api_tests/test_set_functions.py
46
+ # noted diversions from spec
47
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i == +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
48
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i == +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
49
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i == -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
50
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i == -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
51
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i > 0 and x2_i == -infinity) -> -0]
52
+ array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i < 0 and x2_i == +infinity) -> -0]
46
53
47
54
EOF
48
55
Original file line number Diff line number Diff line change @@ -705,7 +705,9 @@ def partial_cond(i1: float, i2: float) -> bool:
705
705
elif r_or_input .match (input_str ):
706
706
left_expr = expr_template .replace ("{}" , "x1_i" )
707
707
right_expr = expr_template .replace ("{}" , "x2_i" )
708
- partial_expr = f"({ left_expr } ) or ({ right_expr } )"
708
+ partial_expr = f"{ left_expr } or { right_expr } "
709
+ if len (cond_strs ) != 1 :
710
+ partial_expr = f"({ partial_expr } )"
709
711
cond_arg = BinaryCondArg .EITHER
710
712
else :
711
713
raise ValueParseError (input_str )
You can’t perform that action at this time.
0 commit comments