Skip to content

Commit

Permalink
feat: add tests confirming underscore sep
Browse files Browse the repository at this point in the history
  • Loading branch information
z80dev committed Nov 9, 2023
1 parent dc3ac07 commit ca32598
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wallet/wallet.vy
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def approve(_seq: int128, to: address, _value: uint256, data: Bytes[4096], sigda
# Increase the number of approved transactions by 1
self.seq += 1
# Use raw_call to send the transaction
return raw_call(to, data, max_outsize=4096, gas=3000000, value=_value)
return raw_call(to, data, max_outsize=4096, gas=3_000_000, value=_value)


@external
Expand Down
5 changes: 5 additions & 0 deletions tests/grammar/test_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def test_basic_grammar():
def one_two_three() -> uint256:
return 123123123
"""
code_nums = """
x: constant(uint256) = 100_000
y: constant(uint256) = 0o100_000
z: constant(decimal) = 1.100_000_007
"""

assert parse_vyper_source(code, dedent=True)
assert parse_to_ast(textwrap.dedent(code))
Expand Down

0 comments on commit ca32598

Please sign in to comment.