mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 06:33:06 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
34
spec/tests/python_2/test_cls_builtin.txt
Normal file
34
spec/tests/python_2/test_cls_builtin.txt
Normal 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
|
Reference in New Issue
Block a user