Skip to content

Commit 96a66da

Browse files
committed
Fix a semantic error in indexing unit test
1 parent a2a85ac commit 96a66da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/simple/index.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def simple_index(verbose=False):
7070
rows = af.constant(0, 1, dtype=af.Dtype.s32)
7171
b = a[:, rows]
7272
display_func(b)
73-
for r in rows:
73+
for r in range(rows.elements()):
7474
display_func(r)
7575
display_func(b[:, r])
7676

0 commit comments

Comments
 (0)