Skip to content

Commit

Permalink
move a test
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Feb 24, 2024
1 parent 9ed427f commit b2ba9e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
send(0x1234567890123456789012345678901234567890, 5)
""",
"""
struct Foo:
pass
@external
def foo():
log Foo # missing parens
""",
"""
x: [bar, baz]
""",
"""
Expand Down
10 changes: 9 additions & 1 deletion tests/functional/syntax/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def foo():
log Bar(x)
""",
"""
struct Foo:
pass
@external
def foo():
log Foo # missing parens
""",
"""
event Test:
n: uint256
Expand All @@ -36,7 +44,7 @@ def test():

@pytest.mark.parametrize("bad_code", fail_list)
def test_logging_fail(bad_code):
with pytest.raises(TypeMismatch):
with pytest.raises((TypeMismatch, StructureException)):
compiler.compile_code(bad_code)


Expand Down

0 comments on commit b2ba9e6

Please sign in to comment.