Skip to content

Commit 3c85cae

Browse files
committed
Note why you'd want to not strictly check int outputs
1 parent d924ce4 commit 3c85cae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

array_api_tests/test_operators_and_elementwise_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def mock_int_dtype(n: int, dtype: DataType) -> int:
6363
# By default, floating-point functions/methods are loosely asserted against. Use
6464
# `strict_check=True` when they should be strictly asserted against, i.e.
6565
# when a function should return intergrals. Likewise, use `strict_check=False`
66-
# when integer function/methods should be loosely asserted against.
66+
# when integer function/methods should be loosely asserted against, i.e. when
67+
# floats are used internally for optimisation or legacy reasons.
6768

6869

6970
def isclose(a: float, b: float, rel_tol: float = 0.25, abs_tol: float = 1) -> bool:

0 commit comments

Comments
 (0)