Skip to content

Commit

Permalink
tests for tuple-based indexing for multi-dim arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Jul 10, 2021
1 parent 6ec9462 commit bc7e94b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ def test02_assign_2D_arrays(self):
for i in range(3):
for j in range(5):
assert arr[i][j] == 1
assert arr[i, j] == 1

# size checking for copy assignment
for itp, (m, tp) in enumerate(data2c):
Expand All @@ -568,6 +569,7 @@ def test02_assign_2D_arrays(self):
for i in range(N):
for j in range(M):
assert arr[i][j] == 7*i+j
assert arr[i, j] == 7*i+j

assert arr[2][3] != 10
arr[2][3] = 10
Expand Down

0 comments on commit bc7e94b

Please sign in to comment.