Skip to content

Commit

Permalink
fix a static assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed May 16, 2024
1 parent fe699f1 commit c6eef21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/functional/codegen/types/numbers/test_signed_ints.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,14 @@ def negative_three() -> {typ}:
return -(1+2)
@external
def negative_four() -> {typ}:
a: {typ} = 2
def negative_four(a: {typ}) -> {typ}:
return -(a+2)
"""

c = get_contract(negative_nums_code)
assert c.negative_one() == -1
assert c.negative_three() == -3
assert c.negative_four() == -4
assert c.negative_four(2) == -4


@pytest.mark.parametrize("typ", types)
Expand Down

0 comments on commit c6eef21

Please sign in to comment.