Skip to content

Commit f128868

Browse files
committed
restore a TODO comment
1 parent 9f28ec8 commit f128868

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

array_api_tests/test_data_type_functions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ def test_can_cast(_from, to):
120120
f_func = f"[can_cast({dh.dtype_to_name[_from]}, {dh.dtype_to_name[to]})]"
121121
if expected:
122122
# cross-kind casting is not explicitly disallowed. We can only test
123-
# the cases where it should return True.
123+
# the cases where it should return True. TODO: if expected=False,
124+
# check that the array library actually allows such casts.
124125
assert out == expected, f"{out=}, but should be {expected} {f_func}"
125126

126127

0 commit comments

Comments
 (0)