Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Jan 7, 2024
1 parent c140574 commit 58c1356
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions tests/functional/syntax/test_for_range.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from vyper import compiler
from vyper.exceptions import (
ArgumentException,
InvalidType,
StateAccessViolation,
StructureException,
TypeMismatch,
)

fail_list = [
Expand Down Expand Up @@ -218,9 +218,15 @@ def foo():
for i: uint256 in range(FOO, BAR):
pass
""",
TypeMismatch,
"Iterator values are of different types",
"range(FOO, BAR)",
InvalidType,
"""Expected uint256 but literal can only be cast as int128.
line 2:24
1
---> 2 FOO: constant(int128) = 3
-------------------------------^
3 BAR: constant(uint256) = 7
""", # noqa: W291
"FOO",
),
(
"""
Expand All @@ -233,7 +239,7 @@ def foo():
""",
StructureException,
"Bound must be at least 1",
"-1",
"FOO",
),
]

Expand Down

0 comments on commit 58c1356

Please sign in to comment.