Reorganize tests into a real spec suite

This commit is contained in:
2024-08-04 19:18:43 -03:00
parent 57c160173c
commit e7c2053222
693 changed files with 136 additions and 116 deletions

View File

@ -0,0 +1,34 @@
# Tests that a cls token gets interpreted as a Token.Name.Builtin.Pseudo
---input---
class TestClass():
@classmethod
def hello(cls):
pass
---tokens---
'class' Keyword
' ' Text
'TestClass' Name.Class
'(' Punctuation
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text
'@classmethod' Name.Decorator
'\n' Text.Whitespace
' ' Text
'def' Keyword
' ' Text
'hello' Name.Function
'(' Punctuation
'cls' Name.Builtin.Pseudo
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text
'pass' Keyword
'\n' Text.Whitespace