Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion array_api_tests/test_data_type_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ def float32(n: Union[int, float]) -> float:


def _float_match_complex(complex_dtype):
return xp.float32 if complex_dtype == xp.complex64 else xp.float64
if complex_dtype == xp.complex64:
return xp.float32
elif complex_dtype == xp.complex128:
return xp.float64
else:
return dh.default_float


@given(
Expand Down