Skip to content

Commit

Permalink
Adds tests for fixed usm_ndarray ctor order validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Jul 9, 2024
1 parent b92cb12 commit 19b5735
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dpctl/tests/test_usm_ndarray_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,10 @@ def test_ctor_invalid_order():
get_queue_or_skip()
with pytest.raises(ValueError):
dpt.usm_ndarray((5, 5, 3), order="Z")
with pytest.raises(ValueError):
dpt.usm_ndarray((10), strides=(1,), order="Z")
with pytest.raises(ValueError):
dpt.usm_ndarray((), order="Z")


def test_ctor_buffer_kwarg():
Expand Down

0 comments on commit 19b5735

Please sign in to comment.