Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 15, 2023
1 parent 3078bcc commit 1683fb8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/functional/syntax/test_method_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pytest

from vyper import compiler

valid_list = [
"""
FOO: constant(String[5]) = "foo()"
BAR: constant(Bytes[4]) = method_id(FOO)
@external
def foo(a: Bytes[4] = BAR):
pass
"""
]


@pytest.mark.parametrize("code", valid_list)
def test_addmulmod_pass(code):
assert compiler.compile_code(code) is not None

0 comments on commit 1683fb8

Please sign in to comment.