Skip to content

Commit 83c7578

Browse files
Added test for the example fixed in previous commit
1 parent 7ed14a6 commit 83c7578

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,10 @@ def test_arange_mixed_types():
10521052
assert x.shape[0] == 3
10531053
assert int(x[1]) == 99 + int(x[0])
10541054

1055+
x = dpt.arange(+2.5, stop=200, step=100, dtype="int32", sycl_queue=q)
1056+
assert x.shape[0] == 2
1057+
assert int(x[1]) == 100 + int(x[0])
1058+
10551059

10561060
@pytest.mark.parametrize(
10571061
"dt",

0 commit comments

Comments
 (0)