mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-27 14:47:50 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
67
spec/tests/python/test_soft_kwds.txt
Normal file
67
spec/tests/python/test_soft_kwds.txt
Normal file
@ -0,0 +1,67 @@
|
||||
---input---
|
||||
match spam:
|
||||
case Some(x):
|
||||
print(f"found {x}")
|
||||
case None:
|
||||
print("found nothing")
|
||||
case _:
|
||||
assert False
|
||||
|
||||
---tokens---
|
||||
'match' Keyword
|
||||
' ' Text
|
||||
'spam' Name
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'case' Keyword
|
||||
' ' Text
|
||||
'Some' Name
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
')' Punctuation
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'print' Name.Builtin
|
||||
'(' Punctuation
|
||||
'f' Literal.String.Affix
|
||||
'"' Literal.String.Double
|
||||
'found ' Literal.String.Double
|
||||
'{' Literal.String.Interpol
|
||||
'x' Name
|
||||
'}' Literal.String.Interpol
|
||||
'"' Literal.String.Double
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'case' Keyword
|
||||
' ' Text
|
||||
'None' Keyword.Constant
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'print' Name.Builtin
|
||||
'(' Punctuation
|
||||
'"' Literal.String.Double
|
||||
'found nothing' Literal.String.Double
|
||||
'"' Literal.String.Double
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'case' Keyword
|
||||
' ' Text.Whitespace
|
||||
'_' Keyword
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text
|
||||
'assert' Keyword
|
||||
' ' Text
|
||||
'False' Keyword.Constant
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user