Skip to content

Commit

Permalink
Adds tests for IntelPythongh-870
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksandr-pavlyk authored and ndgrigorian committed Sep 8, 2022
1 parent 940edd9 commit ca34263
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dpctl/tests/test_usm_ndarray_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def test_empty_slice():
assert Y.shape == X.shape
Z = X[::2]
assert Z.shape == X.shape
X = dpt.empty((0, 4), dtype="u1")
assert X[:, 1].shape == (0,)
assert X[:, 1:3].shape == (0, 2)


def test_slice_constructor_1d():
Expand Down

0 comments on commit ca34263

Please sign in to comment.