Skip to content

Commit 77931b9

Browse files
author
Chaluvadi
committed
Fixed utility functions for tests
1 parent e4f2755 commit 77931b9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/test_utilities.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
import pytest
2-
31
import arrayfire_wrapper.lib as wrapper
42

53
from arrayfire_wrapper.dtypes import f64, c32, c64, Dtype
64

5+
76
def is_cmplx_type(dtype: Dtype) -> bool:
87
"""Checks to see if the specified type is a complex type"""
98
return dtype == c32 or dtype == c64
109

10+
1111
def is_system_supported(dtype: Dtype) -> bool:
1212
"""Checks to see if the specified type is supported by the current system"""
1313
if dtype in [f64, c64] and not wrapper.get_dbl_support():
1414
return False
15-
16-
return True
15+
return True

0 commit comments

Comments
 (0)