Test list inputs
@@ -62,6 +62,12 @@ class TestTypeTestingFunctions(unittest.TestCase):
def test_scalar(self, xp, dtype):
return getattr(xp, self.func)(dtype(3))
+ @testing.for_all_dtypes()
+ @testing.numpy_cupy_array_equal()
+ def test_list(self, xp, dtype):
+ return getattr(xp, self.func)(
+ testing.shaped_arange((2, 3), xp, dtype).tolist())
+
@testing.parameterize(
{'func': 'iscomplexobj'},
@@ -78,3 +84,9 @@ class TestTypeTestingObjFunctions(unittest.TestCase):
@testing.numpy_cupy_equal()
def test_scalar(self, xp, dtype):
return getattr(xp, self.func)(dtype(3))
+
+ @testing.for_all_dtypes()
+ @testing.numpy_cupy_array_equal()
+ def test_list(self, xp, dtype):
+ return getattr(xp, self.func)(
+ testing.shaped_arange((2, 3), xp, dtype).tolist())
