Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jan 7, 2024
1 parent 8fe23c9 commit f329bb4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,13 @@ def test_for() -> int128:
""",
TypeMismatch,
),
"""
@external
def foo():
a: DynArray[DynArray[uint256, 2], 3] = [[0, 1], [2, 3], [4, 5]]
for i: uint256 in a[2]:
pass
""",
]

BAD_CODE = [code if isinstance(code, tuple) else (code, StructureException) for code in BAD_CODE]
Expand Down

0 comments on commit f329bb4

Please sign in to comment.