Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Feb 25, 2024
1 parent a04453e commit 4e5f416
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/functional/syntax/test_interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,36 @@ def foo() -> uint256:
""",
InterfaceViolation,
),
(
# decorators must be strictly identical
"""
interface Self:
def protected_view_fn() -> String[100]: nonpayable
implements: Self
@external
@pure
def protected_view_fn() -> String[100]:
return empty(String[100])
""",
InterfaceViolation,
),
(
# decorators must be strictly identical
"""
interface Self:
def protected_view_fn() -> String[100]: view
implements: Self
@external
@pure
def protected_view_fn() -> String[100]:
return empty(String[100])
""",
InterfaceViolation,
),
]


Expand Down

0 comments on commit 4e5f416

Please sign in to comment.