Skip to content

Commit 15c8cfe

Browse files
committed
fix test
Signed-off-by: Pradyot Ranjan <99216956+pradyotRanjan@users.noreply.github.com>
1 parent 2ab1dbd commit 15c8cfe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_funcs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,8 +1887,8 @@ def test_device(self, xp: ModuleType, device: Device):
18871887
class TestAngle:
18881888
def test_simple(self, xp: ModuleType):
18891889
a = xp.asarray([1, 0])
1890-
expected = xp.asarray([0.0, 0.0], dtype=xp.float64)
18911890
res = angle(a)
1891+
expected = xp.asarray([0.0, 0.0], dtype=res.dtype)
18921892
xp_assert_equal(res, expected)
18931893

18941894
def test_basic(self, xp: ModuleType):

0 commit comments

Comments
 (0)