Skip to content

Commit 5a29ffa

Browse files
committed
Fix tests
1 parent 4374d93 commit 5a29ffa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

arrayfire/array_api/tests/test_array_object.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def test_array_getitem() -> None:
105105
# TODO add more tests for different dtypes
106106

107107

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
108+
def test_array_sum() -> None:
109+
array = Array([1, 2, 3])
110+
res = array + 1
111+
assert res[0].scalar() == 2
112+
assert res[1].scalar() == 3
113+
assert res[2].scalar() == 4

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy