Skip to content

Commit 952d58f

Browse files
committed
Add tests
1 parent 38ecbc8 commit 952d58f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dpnp/tests/test_manipulation.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,16 @@ def test_negative_resize(self, xp):
12381238
with pytest.raises(ValueError, match=r"negative"):
12391239
xp.resize(a, new_shape=new_shape)
12401240

1241+
@testing.with_requires("numpy>=2.3.1")
1242+
@pytest.mark.parametrize("dt", [dpnp.uint32, dpnp.uint64])
1243+
def test_unsigned_resize(self, dt):
1244+
a = numpy.array([[23, 95], [66, 37]])
1245+
ia = dpnp.array(a)
1246+
1247+
result = dpnp.resize(ia, dt(1))
1248+
expected = numpy.resize(a, dt(1))
1249+
assert_array_equal(result, expected)
1250+
12411251

12421252
class TestRot90:
12431253
@pytest.mark.parametrize("xp", [numpy, dpnp])

0 commit comments

Comments
 (0)