We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4374d93 commit 5a29ffaCopy full SHA for 5a29ffa
arrayfire/array_api/tests/test_array_object.py
@@ -105,9 +105,9 @@ def test_array_getitem() -> None:
105
# TODO add more tests for different dtypes
106
107
108
-# def test_array_sum() -> None: # BUG no element-wise adding
109
-# array = Array([1, 2, 3])
110
-# res = array + 1
111
-# assert res.scalar() == 2
112
-# assert res.scalar() == 3
113
-# assert res.scalar() == 4
+def test_array_sum() -> None:
+ array = Array([1, 2, 3])
+ res = array + 1
+ assert res[0].scalar() == 2
+ assert res[1].scalar() == 3
+ assert res[2].scalar() == 4
0 commit comments