Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jul 25, 2023
1 parent 0480d2b commit c02951a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/parser/globals/test_getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_getter_code(get_contract_with_gas_estimation_for_constants):
c: public(constant(uint256)) = 1
d: public(immutable(uint256))
e: public(immutable(uint256[2]))
f: public(constant(uint256[2])) = [3, 7]
@external
def __init__():
Expand Down Expand Up @@ -68,6 +69,7 @@ def __init__():
assert c.c() == 1
assert c.d() == 1729
assert c.e(0) == 2
assert [c.f(i) for i in range(2)] == [3, 7]


def test_getter_mutability(get_contract):
Expand Down

0 comments on commit c02951a

Please sign in to comment.