Skip to content

Commit bca2327

Browse files
committed
add test for soft keywords
1 parent 2cdd76e commit bca2327

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_traceback.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1815,6 +1815,11 @@ class TestKeywordTypoSuggestions(unittest.TestCase):
18151815
("[x for x\nin range(3)\nof x]", "if"),
18161816
("[123 fur x\nin range(3)\nif x]", "for"),
18171817
("for x im n:\n pass", "in"),
1818+
("mach x:", "match"),
1819+
("math x:", "match"),
1820+
("match 1:\n cse 1:", "case"),
1821+
("typ x = int", "type"),
1822+
("typed x = int", "type"),
18181823
("switch x:\n case:", "match"),
18191824
("delete x", "del"),
18201825
("function f():", "def"),

0 commit comments

Comments
 (0)