Skip to content

Commit

Permalink
Update test for dpnp.rot90
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed Jan 20, 2025
1 parent a95e8f6 commit 61d61b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dpnp/tests/test_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from .helper import (
assert_dtype_allclose,
get_all_dtypes,
get_array,
get_complex_dtypes,
get_float_complex_dtypes,
get_float_dtypes,
Expand Down Expand Up @@ -1232,7 +1233,10 @@ def test_axes(self):
def test_axes_type(self, axes):
a = numpy.ones((50, 40, 3))
ia = dpnp.array(a)
assert_equal(dpnp.rot90(ia, axes=axes), numpy.rot90(a, axes=axes))
assert_equal(
dpnp.rot90(ia, axes=axes),
numpy.rot90(a, axes=get_array(numpy, axes)),
)

def test_rotation_axes(self):
a = numpy.arange(8).reshape((2, 2, 2))
Expand Down

0 comments on commit 61d61b4

Please sign in to comment.