Skip to content

Commit 1f78b29

Browse files
Adds tests for gh-870
1 parent c6802c3 commit 1f78b29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ def test_empty_slice():
219219
assert Y.shape == X.shape
220220
Z = X[::2]
221221
assert Z.shape == X.shape
222+
X = dpt.empty((0, 4), dtype="u1")
223+
assert X[:, 1].shape == (0,)
224+
assert X[:, 1:3].shape == (0, 2)
222225

223226

224227
def test_slice_constructor_1d():

0 commit comments

Comments
 (0)