Skip to content

Commit

Permalink
added mode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai-X-Org committed Feb 25, 2025
1 parent b74ab4b commit 5bcde0e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tests/syntax/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,19 @@ def test_basic(self):
assert False

class TestMode:
pass
def test_basic(self):
mod = parse_string_helper(
"""
mode Mode1:
pass
"""
)
stmt = mod.body[0]
match stmt:
case Mode("Mode1", [Pass()]):
assert True
case _:
assert False

class TestJumpTo:
pass
Expand Down

0 comments on commit 5bcde0e

Please sign in to comment.