Skip to content

Commit

Permalink
add syntax test
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Oct 4, 2024
1 parent cf94bf5 commit d0f42af
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/functional/syntax/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ def test() -> Bytes[1]:
(
"""
@external
def test() -> Bytes[2]:
a: Bytes[2] = x"abc"
return a
""",
SyntaxException,
),
(
"""
@external
def foo():
a: Bytes = b"abc"
""",
Expand Down

0 comments on commit d0f42af

Please sign in to comment.