Skip to content

Commit b752e2c

Browse files
committed
Add tests for type soft keyword colorizer
1 parent 51f2dc5 commit b752e2c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Lib/idlelib/idle_test/test_colorizer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ async def f(): await g()
5252
'''
5353
case _:'''
5454
"match x:"
55+
type Point = tuple[float, float]
56+
type = type(1)
5557
""")
5658

5759

@@ -404,6 +406,8 @@ def test_recolorize_main(self, mock_notify):
404406
('28.25', ('STRING',)), ('28.38', ('STRING',)),
405407
('30.0', ('STRING',)),
406408
('31.1', ('STRING',)),
409+
('55.0', ('KEYWORD',)), ('55.4', ()), ('55.13', ('BUILTIN',)), ('55.19', ('BUILTIN',)),
410+
('56.0', ('BUILTIN',)), ('56.7', ('BUILTIN',)),
407411
# SYNC at the end of every line.
408412
('1.55', ('SYNC',)), ('2.50', ('SYNC',)), ('3.34', ('SYNC',)),
409413
)

0 commit comments

Comments
 (0)