diff --git a/tests/syntax/test_parser.py b/tests/syntax/test_parser.py index d2c42fc47..51ffa5328 100644 --- a/tests/syntax/test_parser.py +++ b/tests/syntax/test_parser.py @@ -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