Skip to content

Commit 01ff7da

Browse files
committed
Add tests
1 parent c1b64bd commit 01ff7da

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

dpnp/tests/test_indexing.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,14 @@ def test_ix_error(self, xp, shape):
337337
assert_raises(ValueError, xp.ix_, xp.ones(shape))
338338

339339

340+
class TestIterable:
341+
@pytest.mark.parametrize("data", [[1.0], [2, 3]])
342+
def test_basic(self, data):
343+
a = numpy.array(data)
344+
ia = dpnp.array(a)
345+
assert dpnp.iterable(ia) == numpy.iterable(a)
346+
347+
340348
@pytest.mark.parametrize(
341349
"shape", [[1, 2, 3], [(1, 2, 3)], [(3,)], [3], [], [()], [0]]
342350
)

0 commit comments

Comments
 (0)